How to specify file source in audio tag
Posted: Tue Jun 05, 2018 8:07 pm
I need to specify the source location for a pre-recorded audio file, but without using an http URL.
I tried variations of this:
<audio src="file://servername/c:/path/myfile.wav">Default text to speech</audio>
and also using a simple relative path:
<audio src="myfile.wav">Default text to speech</audio>
where in the second case the audio file is in the same location as the vxml file that is referencing it.
But I have been unable to get it to work. It always fails to find the pre-recorded audio and uses the default text.
Are any special access permissions needed or is there something else needed to use a non-http URI for the audio file location?
I tried variations of this:
<audio src="file://servername/c:/path/myfile.wav">Default text to speech</audio>
and also using a simple relative path:
<audio src="myfile.wav">Default text to speech</audio>
where in the second case the audio file is in the same location as the vxml file that is referencing it.
But I have been unable to get it to work. It always fails to find the pre-recorded audio and uses the default text.
Are any special access permissions needed or is there something else needed to use a non-http URI for the audio file location?