AudioProfileType

Audio encoding properties.

Enumerations

AudioProfileDefault
0: Default value.
  • In live broadcast: 48 kHz sample rate, music encoding, mono, max bitrate 64 Kbps.
  • In communication: 32 kHz sample rate, speech encoding, mono, max bitrate 18 Kbps.
AudioProfileSpeechStandard
1: Sets 32 kHz sample rate, speech encoding, mono, max bitrate 18 Kbps.
AudioProfileMusicStandard
2: Sets 48 kHz sample rate, music encoding, mono, max bitrate 64 Kbps.
AudioProfileMusicStandardStereo
3: Sets 48 kHz sample rate, music encoding, stereo, max bitrate 80 Kbps. To enable stereo, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
AudioProfileMusicHighQuality
4: Sets 48 kHz sample rate, music encoding, mono, max bitrate 96 Kbps.
AudioProfileMusicHighQualityStereo
5: Sets 48 kHz sample rate, music encoding, stereo, max bitrate 128 Kbps. To enable stereo, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
AudioProfileIot
6: Sets 16 kHz sample rate, speech encoding, mono, applies echo cancellation algorithm AEC.
AudioProfileNum
Boundary of enum values.