enableLocalVoicePitchCallback abstract method

Future<void> enableLocalVoicePitchCallback(
  1. int interval
)

Enables reporting the voice pitch of the local user. This method enables the SDK to regularly report the voice pitch of the local user. After the local audio capture is enabled, and you call this method, the SDK triggers the localVoicePitchInHz callback at the time interval set in this method. You can call this method either before or after joining a channel.

Param interval Sets the time interval at which the SDK triggers the localVoicePitchInHz callback: ≤ 0: Disables the localVoicePitchInHz callback.

0: The time interval (ms) at which the SDK triggers the localVoicePitchInHz callback. The value must be greater than or equal to 10. If the value is less than 10, the SDK automatically changes it to 10.

Implementation

Future<void> enableLocalVoicePitchCallback(int interval);