TRTCAudioQuality enum
Sound Quality
TRTC provides three well-tuned modes to meet the differentiated requirements for sound quality in various verticals.
Constructors
- TRTCAudioQuality()
-
const
Values
- speech → const TRTCAudioQuality
-
- Speech mode: sample rate: 16 kHz; mono channel; bitrate: 16 Kbps.
- This mode has the best resistance among all modes and is suitable for audio call scenarios, such as online meeting and audio call.
- In this mode, the audio transfer is more resistant, and TRTC uses various voice processing technologies to ensure optimal smoothness even in weak network environments.
- defaultMode → const TRTCAudioQuality
-
- Default mode: sample rate: 48 kHz; mono channel; bitrate: 50 Kbps.
- This mode is between the speech mode and the music mode as the default mode in the SDK and is recommended.
- The reproduction of music is better than that in
Speech
mode, and the amount of transferred data is much lower than that inMusic
mode; therefore, this mode has good adaptability to various scenarios.
- music → const TRTCAudioQuality
-
- Music mode: sample rate: 48 kHz; full-band stereo; bitrate: 128 Kbps.
- This mode is suitable for scenarios where Hi-Fi music transfer is required, such as online karaoke and music live streaming.
- In this mode, the amount of transferred audio data is very large, and TRTC uses various technologies to ensure that the high-fidelity details of music signals can be restored in each frequency band.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
TRTCAudioQuality> - A constant List of the values in this enum, in order of their declaration.