Static Public Member Functions

static int getValue (AudioProfile type)
 

Public Attributes

 DEFAULT =(Constants.AUDIO_PROFILE_DEFAULT)
 
 SPEECH_STANDARD =(Constants.AUDIO_PROFILE_SPEECH_STANDARD)
 
 MUSIC_STANDARD =(Constants.AUDIO_PROFILE_MUSIC_STANDARD)
 
 MUSIC_STANDARD_STEREO =(Constants.AUDIO_PROFILE_MUSIC_STANDARD_STEREO)
 
 MUSIC_HIGH_QUALITY =(Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY)
 
 MUSIC_HIGH_QUALITY_STEREO =(Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO)
 

Detailed Description

Sets the audio profile sampling rate, bitrate, encoding mode, and the number of channels.

Member Data Documentation

◆ DEFAULT

io.agora.rtc.Constants.AudioProfile.DEFAULT =(Constants.AUDIO_PROFILE_DEFAULT)

0: (Default). In the Communication profile, the default value is 1; in the Live-broadcast profile, the default value is 2.

◆ SPEECH_STANDARD

io.agora.rtc.Constants.AudioProfile.SPEECH_STANDARD =(Constants.AUDIO_PROFILE_SPEECH_STANDARD)

1: Specifies the sampling rate as 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.

◆ MUSIC_STANDARD

io.agora.rtc.Constants.AudioProfile.MUSIC_STANDARD =(Constants.AUDIO_PROFILE_MUSIC_STANDARD)

2: Specifies the sampling rate as 48 kHz, music encoding, mono, and a bitrate of up to 48 Kbps.

◆ MUSIC_STANDARD_STEREO

io.agora.rtc.Constants.AudioProfile.MUSIC_STANDARD_STEREO =(Constants.AUDIO_PROFILE_MUSIC_STANDARD_STEREO)

3: Specifies the sampling rate as 48 kHz, music encoding, stereo, and a bitrate of up to 56 Kbps.

◆ MUSIC_HIGH_QUALITY

io.agora.rtc.Constants.AudioProfile.MUSIC_HIGH_QUALITY =(Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY)

4: Specifies the sampling rate as 48 kHz, music encoding, mono, and a bitrate of up to 128 Kbps.

◆ MUSIC_HIGH_QUALITY_STEREO

io.agora.rtc.Constants.AudioProfile.MUSIC_HIGH_QUALITY_STEREO =(Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO)

5: Specifies the sampling rate as 48 kHz, music encoding, stereo, and a bitrate of up to 192 Kbps.