setVoicePitch method

Future<void> setVoicePitch(
  1. double pitch
)

设置语音音调

参数:

pitch 音调,取值范围为-1.0f~1.0f,默认值:0.0f

不支持平台:

  • web
  • macOS
  • Windows

Implementation

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