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

Can i use IVR to listen to songs stored in Database

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
girishprabhakar82
Posts: 2
Joined: Tue Dec 08, 2009 4:14 am

Can i use IVR to listen to songs stored in Database

Post by girishprabhakar82 »

Hi All,

Can i use IVR to listen to songs stored in any database.

If yes, How???

Thanks in advance

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

use IVR to listen to songs by using the <audio> tag

Post by support »

Hi,

You can use IVR to listen to songs by using the IVR tag, <audio>. However, please be mindful of using the correct audio formats for this process. For more information on this, please see here:

http://www.plumvoice.com/docs/dev/devel ... ence:audio

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:31 am, edited 6 times in total.

girishprabhakar82
Posts: 2
Joined: Tue Dec 08, 2009 4:14 am

Listening to songs using <audio> tag

Post by girishprabhakar82 »

Hi Team,

Thanks a lot. :D

I really appreciate your response.

Since i am new to this technology, can you please also guide me how to run the sample example mentioned in the link below.

What all do i need to execute it, so that i can listen an audio file from my mobile phone.

Thanks in advance again.

Girish

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

Plum IVR <audio> example

Post by support »

Hi Girish,

To run this IVR example, first create an IVR script on your web server with this IVR example:

testaudio.vxml:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        I'm going to play an audio file.
      </prompt>
      <!-- If the wave file at the location specified by the -->
      <!-- "src" attribute can not be retrieved, the text within -->
      <!-- the "audio" tag will be read by the TTS engine. -->
      <audio src="http://nonexistent.domain.com/test.wav">
        Oops, the audio file could not be retrieved!
      </audio>
    </block>
  </form>
</vxml>
Then, on the IVR hosting page (http://hosting.plumgroup.com), go to Applications->Application Configuration->Edit(for one of your phone numbers). From there, for "Application Source", select "Remote URL" from the drop-down menu. For "Remote URL", enter the URL of where you are storing your VoiceXML script (for example: http://www.yourwebserver.com/testaudio.vxml).

Hope this helps.

Regards,
Plum Support

Post Reply