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

Recording speech until pound key is pressed

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
sking@xosphere.com
Posts: 18
Joined: Fri Dec 28, 2007 5:20 pm

Recording speech until pound key is pressed

Post by sking@xosphere.com »

Hello guys, our clients are complaining that in a voice record form field the recording voice ends inmediatly after the user talks. The client needs to press the pound key to end the recording instead of the silence.

We tried setting the dtmfterm variable to true, to false, and there were no apparently differences.


<record name="yourrecording" beep="true" type="audio/x-wav" dtmfterm="true">

We also tried setting maxtime and finalsilence with no luck too.

Please help us.

PS: Is there any delay tag to wait for an amount of time to pretend the pound key.

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

IVR code to end recording when # key is pressed

Post by support »

Hi,

You can use the following IVR code example to achieve your goal:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <record name="yourrecording" beep="true" type="audio/x-wav" dtmfterm="true" finalsilence="300s" maxtime="300s">
      <prompt>
        Please record a message after the beep. Press any DTMF key to end the recording.
      </prompt>
      <filled>
        You just recorded the following message:
        <value expr="yourrecording"/>
      </filled>
    </record>
  </form>
</vxml>
From this IVR example, the user can enter any DTMF key to end the recording. We set the "finalsilence" and "maxtime" to 300s to ensure that the user would have enough time to <record> the message before hitting a DTMF key to end it.

Hope this helps.

Regards,
Plum Support

Post Reply