title: How to change pitch of audio without changing its duration (tempo, speed) in android?
body: <p>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:</p>
  
  <pre><code>mediaPlayer.setPlaybackParams(mediaPlayer.getPlaybackParams().setPitch(1.7f));
  </code></pre>
  
  <p><strong>But how to do it for lower version of Android?</strong><br>
  Is there any easy way to do this?<br>
  <br>
  Or maybe there are some external libraries that can help me?<br>
  I found e.g. SoundTouch, but I can't add it to Android Studio project..<br>
  <br>
  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.<br>
  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.<br>
  <br>
  Sorry for my English! Thanks!</p>