- Do I have to include .mp3 or .wav in my audio file URL?
- Do I have to specify the audio file extension?
- Can I use a different file extension for my media file URL? (e.g. .php)
When streaming a media file using Voice API, it is recommended to specify whether the audio file is .mp3 or .wav in the URL. e.g. www.nexmo.com/audio.mp3
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.