TRTC_TranscodingConfigMode_Template_PureAudio property

int TRTC_TranscodingConfigMode_Template_PureAudio
final

PureAudio mode. It is suitable for pure audio scenarios such as audio call (AudioCall) and voice chat room (VoiceChatRoom).

You only need to set it once through the setMixTranscodingConfig() API after room entry, and then the SDK will automatically mix the audios of all mic-on users in the room into the current user's live stream.

In this mode, you don't need to set the mixUsers parameter in TRTCTranscodingConfig; instead, you only need to set the audioSampleRate, audioBitrate and audioChannels parameters.

Implementation

static final int TRTC_TranscodingConfigMode_Template_PureAudio = 2;