Audio Formats

Audio payloads are Base64-encoded raw audio in the negotiated format.

The format is defined by the sending or listening message and may differ between directions. The API allows up to 30 MB of queued outbound audio at any time.

Codec Sending Listening Description
pcm_8000✓✓16-bit PCM, 8 kHz, mono
pcm_16000✓✓16-bit PCM, 16 kHz, mono
pcm_24000✓✓16-bit PCM, 24 kHz, mono
alaw✓✓G.711 A-law, 8 kHz
ulaw✓✓G.711 µ-law, 8 kHz
g722✓✓G.722, 16 kHz
ogg✓✓Opus in Ogg container
wav✓—WAV container
mp3✓—MP3