Menu

Do I have to specify the file type in my audio file?

Question

  • 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)

 

Answer

When streaming an media file using Voice API, it is necessary to specify whether the audio file is .mp3 or .wav in the URL. e.g. www.nexmo.com/audio.mp3

Stream URLs without the media file extension, or will invalid media file types, will fail and will not be played. e.g. www.nexmo.com/audio-file www.nexmo.com/media-file.php

Was this article helpful?
0 out of 0 found this helpful
Follow
Have more questions? Submit a request