Page 1 of 1
only listen for text input, no voice
Posted: Wed Oct 04, 2006 4:40 pm
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
IVR example that will only allow for DTMF input
Posted: Wed Oct 04, 2006 7:05 pm
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
Posted: Wed Oct 04, 2006 8:00 pm
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?
inputmodes property follows normal scoping rules for IVR
Posted: Wed Oct 04, 2006 8:13 pm
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