logo
On this page

ZegoAudioCodecID

ZegoAudioCodecID

Audio codec ID.

Declared in ZegoExpressDefines.h

Properties

ZegoAudioCodecIDDefault

ZegoAudioCodecIDDefault
ZegoAudioCodecIDDefault=(0)

Default, determined by the [scenario] when calling [createEngine].

ZegoAudioCodecIDNormal

ZegoAudioCodecIDNormal
ZegoAudioCodecIDNormal=(1)

Can be used for RTC and CDN streaming; bitrate range from 10kbps to 128kbps; supports stereo; latency is around 500ms. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.

ZegoAudioCodecIDNormal2

ZegoAudioCodecIDNormal2
ZegoAudioCodecIDNormal2=(2)

Can be used for RTC and CDN streaming; good compatibility; bitrate range from 16kbps to 192kbps; supports stereo; latency is around 350ms; the sound quality is worse than [Normal] in the same (low) bitrate. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.

ZegoAudioCodecIDNormal3

ZegoAudioCodecIDNormal3
ZegoAudioCodecIDNormal3=(3)

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.

ZegoAudioCodecIDLow

ZegoAudioCodecIDLow
ZegoAudioCodecIDLow=(4)

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.

ZegoAudioCodecIDLow2

ZegoAudioCodecIDLow2
ZegoAudioCodecIDLow2=(5)

Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming; maximum bitrate is 16kbps.

ZegoAudioCodecIDLow3

ZegoAudioCodecIDLow3
ZegoAudioCodecIDLow3=(6)

Can only be used for RTC streaming; bitrate range from 6kbps to 192kbps; supports stereo; latency is around 200ms; Under the same bitrate (low bitrate), the sound quality is significantly better than [Normal] and [Normal2]; low CPU overhead. Server cloud transcoding is not required when communicating with the Web SDK, and it is required when relaying to CDN.

Previous

zegoaudiochannel

Next

zegoaudioconfigpreset

On this page

Back to top