Search code examples
androidaudioandroid-ndkffmpegaudiotrack

How to change audio tempo and pitch individuality using ffmpeg?


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.


Solution

  • Solution : I tried SoundTouch library. I compiled it successfully for android but then I failed to use its function because I don't know how to use this library to load audio.

    But after that I tried library called Sonic. Its basically for Speech as it use PSOLA algo to change pitch and tempo. But its ok.