Android downsample code for reducing audio sampling frequency

Use Android audiorecord to record PCM files. The Android SDK ensures that the sampling frequency supported on all devices is only 44100HZ. Therefore, there are several ways to obtain PCM data of other sampling frequencies: 1. Try the available sampling frequency on the device, 2. Convert the sampling frequency after 44.1k sampling.

There are many ways to convert the sampling frequency. At present, I use SSRC, and the effect is very good.

8000 in the above code is the target sampling frequency. SSRC official website: http://shibatch.sourceforge.net/ JSSRC: https://github.com/hutm/JSSRC

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>