Docs menu
Docs

Supported Audio Formats

View Markdown
  • This document is for checking the SDK and supported audio formats.
Parameteropus_rawpcmwavmp3amroggm4aspeex_wechat
Number of ChannelsMonoMonoMonoMonoMonoMonoMonoMono
Bit DepthN/A16 bit16 bitN/AN/AN/AN/AN/A
Sample Rate16000 Hz16000 Hz16000 Hz16000 Hz16000 Hz16000 Hz16000 Hz8000 Hz
SDK Platform/API Support
AndroidBuilt-in recording supportManual data transfer supportManual data transfer support
iOSBuilt-in recording supportManual data transfer supportManual data transfer support
ohosSupportedSupportedSupported
Mini ProgramsSupportedSupportedSupported
H5Supported
LinuxSupportedSupportedSupported
H5 (JavaScript)SupportedSupportedSupported
WeChat H5SupportedSupportedSupported
WebSocketSupportedSupportedSupportedSupported
HTTPSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupported
  • opus_raw is the raw opus encoding format not encapsulated by the ogg container. It can maximize the retention of valid voice information while reducing the transmission bandwidth.
  • speex_wechat is the WeChat high-definition audio format obtained through the WeChat high-definition voice material acquisition interface.
  • The amr format limits the sample rate to 8000 Hz, but please pass the parameter format = 16000 when requesting the HTTP interface.