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

only listen for text input, no voice

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

only listen for text input, no voice

Post by brent.russell »

I am trying to only use text input from the phone in my application however, it keeps hearing me breath and or background noise. Can this be stopped with <grammar mode="dtmf">1 | 2 | 3 </grammar>
or is it done with the property tag? I have tried both but it is not woring for me even though things validate ok. Can some one give me an example of how to do this?

I'm new to vxml
Thanks, Brent

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

IVR example that will only allow for DTMF input

Post by support »

Hello,

You can disable speech input by adjusting the IVR global property "inputmodes". This IVR property specifies the types of input that can barge in a prompt. Here is an IVR example that will only allow for DTMF input:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
  <property name="inputmodes" value="dtmf"/>
  <form>
    <field name="field1">
      <grammar mode="dtmf">1|2|3</grammar>
      <prompt>Please press 1, 2 or 3.</prompt> 
      <filled>
        <prompt>You pressed <value expr="field1"/></prompt>
      </filled>
    </field>
  </form>
</vxml>
Regards,
Plum Support
Last edited by support on Sat Feb 20, 2010 4:32 pm, edited 3 times in total.

brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

Post by brent.russell »

Ok, that worked but what if I want to reenable it? Or what if I want the whole application to be voice listening except for one form?

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

inputmodes property follows normal scoping rules for IVR

Post by support »

Hello,

The IVR property, inputmodes, follows normal scoping rules for IVR properties. The <property> tag affects all IVR tag at or below the scope of the property tag. You can place the IVR property at the form level to override the default behavior (voice and dtmf) for any specific form or at the top of your document to affect all forms in the document.

Regards,
Plum Support

Post Reply