» Sign in
  

Choose from the following:

 » Description
 » Size of package
 » Format
 » Notes

Description

Record and playback

Scenario

This service demonstrates how to record the user voice and to play back the recorded file. So on an incoming call, the service:
  • performs a recording of the user voice
  • plays the recorded audio file

Code


<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/2001/vxml
      http://www.w3.org/TR/voicexml20/vxml.xsd">

  <meta name="en_record.vxml" content=""/>
  <meta name="Author" content="HP"/>
  <meta name="Date" content="September, 2005"/>
  <meta name="Description"
        content="This VoiceXML example is provided
              as part of an HP OpenCall Media Platform
              VoiceXML installation"/>
  <meta name="Support" content="none"/>

  <form>
    <!-- Play a message using voice synthesis,
          then play a beep before perform the recording,
          until the caller press any DTMF to end it -->

    <record name="msg" beep="true" dtmfterm="true">
      <prompt>
        Please leave your message after the beep
              and then press any key.
      </prompt>
    </record>
    <!-- Playback the recorded message -->
    <filled>
      <prompt>
        Your recording is
          <audio expr="msg"/>
      </prompt>
    </filled>
  </form>
</vxml>

 » Back to top

Size of package

25KB
 » Back to top

Format

ZIP
 » Back to top

Notes

Warning: You must install and enable an English TTS engine before executing this service.
 » Back to top

Licensing and download

Size

Date

 » en_record.zip
zip file
(2.0 KB)
Aug 2007


Manage My AllianceOne Membership

 
 » Sign in
 » Join AllianceOne
 » Contact us