API Reference for web - Enumeration: AudioEncoderConfigurationPreset
更新时间: 2023-10-23 16:45:52
# Enumeration: AudioEncoderConfigurationPreset
interface/StreamInterface.AudioEncoderConfigurationPreset
SDK 预设的 AudioEncoderConfiguration 配置。
你可以在以下方法中传入预设值来控制本地音频的编码配置:
- CoreRTC.createCustomAudioTrack
- CoreRTC.createMicrophoneAudioTrack
- CoreRTC.createBufferSourceAudioTrack
下表列出了 SDK 所有内置的音频属性配置,SDK 默认使用 "music_standard"
。
音频属性 | 配置 |
---|---|
"speech_low_quality" | 16 kHz 采样率,单声道,编码码率约 24 Kbps |
"speech_standard" | 32 kHz 采样率,单声道,编码码率约 24 Kbps |
"music_standard" | 48 kHz 采样率,单声道,编码码率约 40 Kbps |
"standard_stereo" | 48 kHz 采样率,双声道,编码码率约 64 Kbps |
"high_quality" | 48 kHz 采样率,单声道, 编码码率约 128 Kbps |
"high_quality_stereo" | 48 kHz 采样率,双声道,编码码率约 192 Kbps |
# Enumeration members
# high_quality
high_quality = "high_quality"
# high_quality_stereo
high_quality_stereo = "high_quality_stereo"
# music_standard
music_standard = "music_standard"
# speech_low_quality
speech_low_quality = "speech_low_quality"
# speech_standard
speech_standard = "speech_standard"
# standard_stereo
standard_stereo = "standard_stereo"