setAudioMixingPitch method

  1. @override
Future<void> setAudioMixingPitch(
  1. int pitch
)

Sets the pitch of the local music file.

When a local music file is mixed with a local human voice, call this method to set the pitch of the local music file only.

Note

Parameter pitch Sets the pitch of the local music file by chromatic scale. The default value is 0, which means keep the original pitch. The value ranges from -12 to 12, and the pitch value between consecutive values is a chromatic value. The greater the absolute value of this parameter, the higher or lower the pitch of the local music file.

Implementation

@override
Future<void> setAudioMixingPitch(int pitch) {
  return _invokeMethod('setAudioMixingPitch', {
    'pitch': pitch,
  });
}