Question
Do I have to include .mp3 or .wav in my audio file URL?
Applies To
- Audio Files
- Voice API
Answer
When streaming a media file using Voice API, it is recommended to specify whether the audio file is .mp3 or .wav in the URL. For example, www.vonage.com/audio.mp3.
Stream URLs without the media file extension, or with invalid media file types, may fail and may not be played. For example, www.vonage.com/audio-file or www.vonage.com/media-file.php.
When a file extension is not included in the URL, the file type is determined by the Content-Type header received. For hosts that force a download, this is often a different Content-Type to the audio file.
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