startAudioRecordingWithConfig method

  1. @override
Future<void> startAudioRecordingWithConfig(
  1. AudioRecordingConfiguration config
)

Starts an audio recording on the client.

Since v3.4.2

The SDK allows recording audio during a call. After successfully calling this method, you can record the audio of users in the channel and get an audio recording file. Supported file formats are as follows:

  • WAV: High-fidelity files with typically larger file sizes. For example, if the sample rate is 32,000 Hz, the file size for a 10-minute recording is approximately 73 MB.
  • AAC: Low-fidelity files with typically smaller file sizes. For example, if the sample rate is 32,000 Hz and the recording quality is [AudioRecordingQuality.Medium], the file size for a 10-minute recording is approximately 2 MB.

Once the user leaves the channel, the recording automatically stops.

Note

  • Call this method after joining a channel.

Parameter config Recording configuration. See AudioRecordingConfiguration.

Implementation

@override
Future<void> startAudioRecordingWithConfig(
    AudioRecordingConfiguration config) {
  return _invokeMethod('startAudioRecording', {
    'config': config.toJson(),
  });
}