I have managed to play audio files using ffmpeg and AudioTrack class in my android project. I can change the speed of audio using AudioTrack class setRate method. But it also change the pitch of audio, I want to change only Tempo of audio but I found no solution on net.
anyone can please help me on this as there is no support for this.
You can use the atempo filter in ffmpeg 1.0 and later:
ffmpeg -i input.wav -f:a atempo=1.25 output.wav
atempo
only accepts values between 0.5 and 2.0, but you can bypass the limitation by chaining multiple filters:
ffmpeg -i input.wav -f:a atempo=2,atempo=1.5 output.wav