setLocalVoicePitch abstract method

Future<void> setLocalVoicePitch(
  1. double pitch
)

Changes the voice pitch of the local speaker.

You can call this method either before or after joining a channel.

  • pitch The local voice pitch. The value range is 0.5,2.0. The lower the value, the lower the pitch. The default value is 1.0 (no change to the pitch).

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.

Implementation

Future<void> setLocalVoicePitch(double pitch);