startAudioRecording abstract method

  1. @Deprecated('This method is deprecated as of v3.4.0. Please use startAudioRecordingWithConfig instead.')
Future<void> startAudioRecording(
  1. String filePath,
  2. AudioSampleRateType sampleRate,
  3. AudioRecordingQuality quality
)

Starts audio recording on the client. Deprecated: This method is deprecated as of v3.4.0. Please use startAudioRecordingWithConfig instead. The Agora SDK allows recording during a call. After successfully calling this method, you can record the audio of all the users in the channel and get an audio recording file. Supported formats of the recording file are as follows: .wav: Large file size with high fidelity. .aac: Small file size with low fidelity. Ensure that the directory you use to save the recording file exists and is writable. This method should be called after the joinChannel method. The recording automatically stops when you call the leaveChannel method. For better recording effects, set quality to Medium or High when sampleRate is 44.1 kHz or 48 kHz.

Param filePath The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.aac . Ensure that the directory for the log files exists and is writable.

Param sampleRate The sample rate (kHz) of the recording file. Supported values are as follows: 16000 (Default) 32000 44100 48000

Param quality Recording quality.

Implementation

@Deprecated(
    'This method is deprecated as of v3.4.0. Please use startAudioRecordingWithConfig instead.')
Future<void> startAudioRecording(String filePath,
    AudioSampleRateType sampleRate, AudioRecordingQuality quality);