Question
Which file types can I use for prerecorded audio with the Voice API?
Applies To
- Voice API
- Prerecorded Audio
Answer
You can use a prerecorded audio file in wav, mp3, ogg, oga, or r16 format. If the audio file included in a Voice API call is not playing, it is very likely due to an encoding incompatibility. Mp3 files must have ID3 header.
While all formats of mp3, ogg, oga, and r16 should be supported, only the following is supported for wav:
- Unsigned 8 bit PCM
- Signed 16 or 24 bit PCM
- U-law or A-law encoding
Articles in this section
- Do we retry if the voice event webhook fails?
- How do I verify that the Voice API Webhook request and it's payload has not been tampered during transit?
- How To Check Call Quality With Voice Inspector
- What is a Conversation ID?
- How to configure the custom webhook timeout for Voice API functionality and what are the allowed timeout ranges ?
- How do I change TTL for the Conversations and Call Legs?
- Why are call progress events not being received on the Event URL defined in the conversation action NCCO?
- Why is there an extended silence at the beginning of a call and how can it be reduced?
- Intermittent WebSocket Disconnections
- What Is An NCCO