setDirectCdnStreamingAudioConfiguration
Sets the audio profile of the audio streams directly pushed to the CDN by the host.
public abstract int setDirectCdnStreamingAudioConfiguration(int profile);
When you set the publishMicrophoneTrack or publishCustomAudioTrack in the DirectCdnStreamingMediaOptions as true
to capture audios, you can call this method to set the audio profile.
Parameters
- profile
-
The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels.
DEFAULT
(0): The default value.- For the interactive streaming profile: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
- For the communication profile: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
SPEECH_STANDARD
(1): A sampling rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.MUSIC_STANDARD
(2): A sampling rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.MUSIC_STANDARD_STEREO
(3): A sampling rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps.MUSIC_HIGH_QUALITY
(4): A sampling rate of 48 kHz, music encoding, mono, and a bitrate of up to 96 Kbps.MUSIC_HIGH_QUALITY_STEREO
(5): A sampling rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps.
Returns
- 0: Success.
- < 0: Failure.