Interface AudioEncoderConfiguration

AudioEncoderConfiguration is the interface that defines the audio encoder configurations.

You can customize the audio encoder configurations when calling [AgoraRTC.createCustomAudioTrack]createCustomAudioTrack, [AgoraRTC.createMicrophoneAudioTrack]createMicrophoneAudioTrack or [AgoraRTC.createBufferSourceAudioTrack]createBufferSourceAudioTrack.

Hierarchy

  • AudioEncoderConfiguration

Properties

bitrate?: number

Bitrate of the audio (Kbps).

sampleRate?: number

Sample rate of the audio (Hz).

sampleSize?: number

Sample size of the audio.

stereo?: boolean

Whether to enable stereo.