Interface AudioEncoderConfiguration

AudioEncoderConfiguration is the interface that defines the audio encoder configurations.

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

Hierarchy

  • AudioEncoderConfiguration

Index

Properties

Optional bitrate

bitrate: number

Bitrate of the audio (Kbps).

Optional sampleRate

sampleRate: number

Sample rate of the audio (Hz).

Optional sampleSize

sampleSize: number

Sample size of the audio.

Optional stereo

stereo: boolean

Whether to enable stereo.