setAudioPitch abstract method
Adjusts the pitch of the currently playing media resource.
You need to call this method after calling open.
pitchAdjusts the pitch of the locally played music file in semitone steps. The default value is 0, meaning no pitch adjustment. The valid range is-12, 12, where each adjacent value differs by a semitone. The greater the absolute value, the more the pitch is increased or decreased.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setAudioPitch(int pitch);