I'm using the expo-audio library in my React Native project to play audio files. When I increase the playback speed using setPlaybackRate(2), the audio plays faster but with a higher pitch on Android devices.
To fix this, I tried setting the pitchCorrectionQuality like this:
setPlaybackRate(2,'high');
However, this throws the following error:
Error: Received 3 arguments, but 2 was expected, js engine: hermes
I'm not sure how to apply pitch correction properly with the latest expo-audio APIs. The documentation is also a bit unclear on this.
My goal: I want to increase playback speed without distorting the pitch, especially on Android.
Questions:
How can I correctly apply pitch correction using expo-audio?
Is there a different method or setting I should use?