We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

why don't my audio files play?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ejohnson
Posts: 5
Joined: Mon Jun 28, 2004 2:40 pm
Location: San Diego
Contact:

why don't my audio files play?

Post by ejohnson »

I'm using a hosting company where I placed my vxml and audio files. The audio files do not play. Is there a solution to that? Do I have to place the audio files on the PLUM server? Or do I need to set some kind of a time out? What is the code to prefetch audio files?

Code: Select all

	<form id="getdemo">
   	   <field name="getzip" type="digits?length=5">
		<prompt>
      	                <audio src="wav/prompt4zip.wav">
  	 	     Please enter your 5 digit zip code.
	                </audio>
		</prompt>

		<filled>
			<goto nextitem="getgender"/>
		</filled>
            	<catch event="nomatch noinput">
       			Sorry, I didn't hear you.
	       		 <reprompt/>
            	</catch>
	   </field>
Thank you much!

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR issue due to specifying not fully qualified URLs

Post by support »

hi:
the problem is you are specifying URLs that are not fully qualified. By specifying relative URLs, the vxml interpreter is looking for files on the local filesystem. The 'local' filesystem is not relative to where the vxml files reside. It's local to where the interpreter resides. Keeping this in mind, change your audio URI as such:

Code: Select all

  <audio src="http://www.mysamplehost.com/myapp/wav/prompt4zip.wav"> 
Happy IVR coding! :)

kind regards,

Plum Support

Post Reply