setLocalVoicePitch abstract method

Future<void> setLocalVoicePitch(
  1. double pitch
)

Sets the local voice pitch.

  • pitch Voice frequency. Can be set in the range 0.5, 2.0. The smaller the value, the lower the pitch. The default value is 1.0, meaning no pitch change.

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> setLocalVoicePitch(double pitch);