How to use the expo-av.Audio.PitchCorrectionQuality function in expo-av

To help you get started, we’ve selected a few expo-av examples, based on popular ways it is used in public projects.

github expo / expo / home / components / AudioPlayer.tsx View on Github external
onPress={() => {
            if (playback.isLoaded) {
              const newRate = playback.rate < 1 ? 1 : 0.5;
              playback.sound.setRateAsync(
                newRate,
                playback.shouldCorrectPitch,
                Audio.PitchCorrectionQuality.High
              );
            }
          }}
        />
github expo / expo / apps / native-component-list / src / screens / AV / AudioPlayer.tsx View on Github external
_setRateAsync = async (
    rate: number,
    shouldCorrectPitch: boolean,
    pitchCorrectionQuality = Audio.PitchCorrectionQuality.Low
  ) => {
    await this._sound!.setRateAsync(rate, shouldCorrectPitch, pitchCorrectionQuality);
  };