Server Gateway SDK v3.7.200.21 for Linux Java
Public Member Functions | List of all members
io.agora.rtc.AudioEncoderConfig Class Reference

Public Member Functions

 AudioEncoderConfig ()
 
 AudioEncoderConfig (int audioProfile)
 
int getAudioProfile ()
 
void setAudioProfile (int audioProfile)
 

Detailed Description

The audio encoder configuration.

Constructor & Destructor Documentation

◆ AudioEncoderConfig() [1/2]

io.agora.rtc.AudioEncoderConfig.AudioEncoderConfig ( )

◆ AudioEncoderConfig() [2/2]

io.agora.rtc.AudioEncoderConfig.AudioEncoderConfig ( int  audioProfile)

Constructor.

Parameters
audioProfileThe audio profile.
  • 0: The default audio profile. In the Communication profile, it represents a sample rate of 16 kHz, music encoding, mono, and a bitrate of up to 16 Kbps. In the Live-broadcast profile, it represents a sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
  • 1: A sample rate of 16 kHz, audio encoding, mono, and a bitrate up to 18 Kbps.
  • 2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
  • 3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps.
  • 4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 96 Kbps.
  • 5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.
  • 6: A sample rate of 16 kHz, audio encoding, mono, and a bitrate of up to 64 Kbps.

Member Function Documentation

◆ getAudioProfile()

int io.agora.rtc.AudioEncoderConfig.getAudioProfile ( )

◆ setAudioProfile()

void io.agora.rtc.AudioEncoderConfig.setAudioProfile ( int  audioProfile)

The documentation for this class was generated from the following file: