AgoraAudioRecordingConfiguration Class Reference

Inherits from NSObject
Declared in AgoraObjects.h

Overview

Since v3.4.0. Recording configuration, which is set in startAudioRecordingWithConfig.

  filePath

The absolute path (including the filename extensions) of the recording file. For example: /var/mobile/Containers/Data/audio.aac.

@property (copy, nonatomic) NSString *filePath

Discussion

Note: Ensure that the path you specify exists and is writable.

Declared In

AgoraObjects.h

  recordingQuality

Audio recording quality. See AgoraAudioRecordingQuality.

@property (assign, nonatomic) AgoraAudioRecordingQuality recordingQuality

Discussion

Note: This parameter applies for AAC files only.

Declared In

AgoraObjects.h

  recordingPosition

Recording content. See AgoraAudioRecordingPosition.

@property (assign, nonatomic) AgoraAudioRecordingPosition recordingPosition

Declared In

AgoraObjects.h

  recordingSampleRate

Recording sample rate (Hz). The following values are supported:

@property (assign, nonatomic) NSInteger recordingSampleRate

Discussion

  • 16000
  • (Default) 32000
  • 44100
  • 48000

Note: If this parameter is set to 44100 or 48000, for better recording effects, Agora recommends recording WAV files or AAC files whose recordingQuality is AgoraAudioRecordingQualityMedium or AgoraAudioRecordingQualityHigh.

Declared In

AgoraObjects.h

  recordingChannel

The recorded audio channel.

@property (assign, nonatomic) NSInteger recordingChannel

Availability

v3.6.2

Discussion

The following values are supported:

  • 1: (Default) Mono channel.
  • 2: Dual channel.

Note: The actual recorded audio channel is related to the audio channel that you capture. If the captured audio is mono and recordingChannel is 2, the recorded audio is the dual-channel data that is copied from mono data, not stereo. If the captured audio is dual channel and recordingChannel is 1, the recorded audio is the mono data that is mixed by dual-channel data. The integration scheme also affects the final recorded audio channel. Therefore, to record in stereo, contact technical support for assistance.

Declared In

AgoraObjects.h