<noinput>

Catches a noinput event (no speech timeout). The <noinput> element catches events generated when a caller does not respond to a prompt within the given amount of time. The <noinput> element provides a shorthand notation for <catch event="noinput">. Note that the following three JavaScript variables are accessible within the <catch> element:

  • _event—Specifies the name of the event that was caught.
  • _message—Specifies a message that describes the event that was caught.
  • _exception (Nuance extension)—Specifies the exception that caused the event to be generated.

Attributes

This section describes the attributes you can set for this element.

Name

Data type

Default

 cond

CDATA

optional

 count

CDATA

optional

cond

The cond attribute allows you to specify a Boolean expression. The Boolean expression must evaluate to true before the <catch> element is processed. You can specify any valid ECMAScript Boolean value.

count

The count attribute allows you to specify alternate event handlers. Alternate event handlers are used in cases where repeated occurrences of the same event occur. You can specify an integer value to identify the occurrence of the event to handle.

Children

Parents

Sample code

<form id="monty_python_holy_grail">
<field name="your_name">
<prompt>What is your name?</prompt>
<help>
<prompt>hint: you are the king.</prompt>
<reprompt/>
</help>
</field>
<field name="swallow">
<prompt>What is the average wind speed velocity of an
unladen swallow?</prompt>
<catch event="help">
<prompt>hint: it depends where the bird comes
from.</prompt>
<reprompt/>
</catch>
</field>
<noinput>
<prompt>sorry, i didn't catch that.</prompt>
<reprompt/>
</noinput>
<nomatch>
<prompt>no, sorry, that's not it. try again.</prompt>
</nomatch>
<error>
<log expr="'Error processing bridge sequence. and now for something 
completely different.../>
<throw event="SOMETHING_COMPLETELY_DIFFERENT"/>
</error>
<filled>You may pass.</filled>
</form>