- This document is for checking the SDK and supported audio formats.
| Parameter | opus_raw | pcm | wav | mp3 | amr | ogg | m4a | speex_wechat |
|---|---|---|---|---|---|---|---|---|
| Number of Channels | Mono | Mono | Mono | Mono | Mono | Mono | Mono | Mono |
| Bit Depth | N/A | 16 bit | 16 bit | N/A | N/A | N/A | N/A | N/A |
| Sample Rate | 16000 Hz | 16000 Hz | 16000 Hz | 16000 Hz | 16000 Hz | 16000 Hz | 16000 Hz | 8000 Hz |
| SDK Platform/API Support | ||||||||
| Android | Built-in recording support | Manual data transfer support | Manual data transfer support | |||||
| iOS | Built-in recording support | Manual data transfer support | Manual data transfer support | |||||
| ohos | Supported | Supported | Supported | |||||
| Mini Programs | Supported | Supported | Supported | |||||
| H5 | Supported | |||||||
| Linux | Supported | Supported | Supported | |||||
| H5 (JavaScript) | Supported | Supported | Supported | |||||
| WeChat H5 | Supported | Supported | Supported | |||||
| WebSocket | Supported | Supported | Supported | Supported | ||||
| HTTP | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported |
- 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 = 16000when requesting the HTTP interface.