Set audio properties

更新时间:
复制 MD 格式

The Real-Time Communication (RTC) software development kit (SDK) lets you set audio quality and scenarios. You can combine these settings to deliver a better product experience. This topic describes how to set audio properties.

Features

The RTC SDK provides three audio quality modes (audio profiles) and one audio scenario, as described in the following tables.

Table 1. Audio profile specifications

Enumeration

Name

Number of sound channels/Sample rate/Encoding bitrate

DingRtcEngineBasicQualityMode

Standard quality mode

1/16 kHz/24 kbps

DingRtcEngineHighQualityMode

High quality mode

1/48 kHz/64 kbps

DingRtcEngineSuperHighQualityMode

Super high quality mode

1/48 kHz/96 kbps

Table 2. Audio scenarios

Enumeration

Name

Features

DingRtcSceneDefaultMode

Default scenario

Recommended for standard Real-Time Communication scenarios.

Implementation

You can set the audio profile and scenario using the following API operations:

Platform

API operation for setting the audio profile and scenario

Android

setAudioProfile

iOS

setAudioProfile

Mac

setAudioProfile

Windows

SetAudioProfile