|
IoT SDK for Linux v1.9.7
|
#include <agora_rtc_api.h>
Data Fields | |
| audio_codec_type_e | audio_codec_type |
| int | pcm_sample_rate |
| int | pcm_channel_num |
| int | pcm_duration |
The SDK's built-in audio codec settings.
| audio_codec_type_e audio_codec_type |
Configures the SDK's built-in audio codec. See audio_codec_type_e. If AUDIO_CODEC_TYPE_OPUS is selected, your PCM data is encoded as OPUS and then streamed to Agora channel If AUDIO_CODEC_TYPE_G722 is selected, your PCM data is encoded as G722 and then streamed to Agora channel If you provide encoded audio data, such as AAC, instead of raw PCM, please disable audio codec by selecting AUDIO_CODEC_DISABLED
| int pcm_channel_num |
The number of PCM channels used by the built-in audio codec. This parameter is required and supports the following values:
| int pcm_duration |
The audio duration in milliseconds. The value must be a multiple of 10 in the range [20, 100]. This setting applies to audio data in every format.
| int pcm_sample_rate |
The PCM sample rate (Hz) used by the built-in audio codec. This parameter is required and supports the following values: