Any way to change the WAV (or MP3) sampling rate on Android or just Java?

I am trying to get files that play through a mono (SCO) BT headset in Android. Files should have a frequency of 8000 Hz, but I have 44100 Hz. Files are MP3s, but I already created the code to convert them to WAV, since I know that Android does not process MP3s initially.

This needs to be done on the device at runtime, so can anyone suggest any suggestions?

I should mention that I don’t care what format the files are in, as long as they can be played using MediaPlayer.

+3
source share
1 answer

44100/8000 = 5,5125 5.5125 , ,

, , , ,

5.5125 , http://en.wikipedia.org/wiki/Downsampling

0

Source: https://habr.com/ru/post/1794165/


All Articles