I have problem with changing pitch of audio keeping its speed (tempo). I want to change pitch of audio and simultaneously don't change its duration. For Android 6.0 and above there is simple way to do this. All we need is using this one line:
mediaPlayer.setPlaybackParams(mediaPlayer.getPlaybackParams().setPitch(1.7f));
But how to do it for lower version of Android?
Is there any easy way to do this?
Or maybe there are some external libraries that can help me?
I found e.g. SoundTouch, but I can't add it to Android Studio project..
So, if there is easy way to change pitch for lower version of Android than 6.0, I would really appreciate that someone give me a solution.
Or, if there isn't as simple way as for Android 6.0 and above I would appreciate if someone give me other helpful solution like libraries or other. And if there will be native library it will be good that someone explain how to add it to Android Studio project.
Sorry for my English! Thanks!