开发者

Android audio and voice processing

I am new to android and presently doing android voice recording application. I want top know which format is best for saving audio file in android. (i.e RAW-AMR or 3gp or mp4).So rhat we can hear playback开发者_JAVA百科 sound loudly in device.

Is there any alternative way to increase audio sound through voice processing in android.

Thanks in advance.


Question: Which bear is best? Answer: Black Bear

Seriously though, you would need to state your criteria for the audio file for us to make a codec recommendation. Does it need to be portable? Best compression? Highest fidelity?

The codec that you choose has no affect on the loudness of audio that will be played over the device, so this should not factor into your criteria.

Is there an alternative way to increase audio? Yes, if you are recording audio from the microphone then you can amplify the audio data before you save it to a file.

Let an audio sample from the microphone be represented by the function:

f(t)

Amplification is achieved by multiplying the audio sample by some factor A

A * f(t)


You can use AGC(Automatic Gain Control) module from WebRTC to increase sound level. I didn't find any simple Java API yet. You can use C++ API via JNI. Have a look here, WebRTC AGC (Automatic Gain Control) .


I want top know which format is best for saving audio file in android.

To save voice audio on Android (or any other platform), take a look at Opus. It's a free, state-of-the-art audio codec that also supports voice mode.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜