Interface CustomAudioTrackInitConfig

Configurations for the custom audio track. Set these configurations when calling AgoraRTC.createCustomAudioTrack.

Hierarchy

  • CustomAudioTrackInitConfig

Index

Properties

Optional channelCount

channelCount: number

The number of channels in the custom audio track. Set to 4, 6, or 8 to send Multiopus multichannel audio, and set ClientConfig.multiopus to true when creating the client. The supplied mediaStreamTrack should contain the corresponding number of channels; this option does not add channels to the input audio.

since


   4.24.10

Optional encoderConfig

The audio encoder configurations.

You can set the audio encoder configurations in either of the following ways:

Firefox does not support setting the audio encoding rate.

mediaStreamTrack

mediaStreamTrack: MediaStreamTrack

Your MediaStreamTrack object.