setAudioEncodingBitRate method

Future<void> setAudioEncodingBitRate(
  1. int bitRate
)

Sets the audio encoding bit rate for recording in bits per second.

Call this method before prepare. prepare may perform additional checks on the parameter to make sure whether the specified bit rate is applicable, and sometimes the passed bitRate will be clipped internally to ensure the audio recording can proceed smoothly based on the capabilities of the platform.

Implementation

Future<void> setAudioEncodingBitRate(int bitRate) {
  return _channel.$setAudioEncodingBitRate(this, bitRate);
}