setVoicePitch method

Future<void> setVoicePitch(
  1. double pitch
)

Set the pitch of the voice

Parameters:

pitch Pitch. Default value: 0.0f. Value range: floating point between [-1.0,1.0];

Platform not supported:

  • web
  • macOS
  • Windows

Implementation

Future<void> setVoicePitch(double pitch) {
  return _channel.invokeMethod('setVoicePitch', {"pitch": pitch});
}