开发者

How to get the volume level from an audio file

开发者 https://www.devze.com 2023-03-07 22:36 出处:网络
I\'ve got an app that repeatedly records from the mic and stores it in short bursts in a temporary 3gp file. I\'d like to get the loudest volume (or even just the first part\'s volume) from that file.

I've got an app that repeatedly records from the mic and stores it in short bursts in a temporary 3gp file. I'd like to get the loudest volume (or even just the first part's volume) from that file. Is there a way to do this through Android?

If it's easier to do wit开发者_C百科h mpeg4, raw amr, or the default format I can do that too. I'm stuck with Android 1.5 though, so some of the newer options in MediaRecorder.OutputFormat aren't available.

Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消