swirec_result_enable_speech_mode
Adds the speech mode attribute to nomatch recognition results (to conform to VoiceXML 2.0).
Value |
Boolean |
Default |
0 (disabled) |
How to set |
In Management Station set on the Nuance recognition service. If not using Management Station, set in a Recognizer configuration file (User-nrsxx.xml). |
Usage |
Ensures recognition results conform to the VoiceXML 2.0 specification. Useful when the VoiceXML interpreter requires the Recognizer to return the speech mode even though the result is a nomatch. (By default, Recognizer only returns the speech mode when a match is found.) |
Depending on their interpretation of the VoiceXML specification, VoiceXML interpreters require setting this parameter, which request an indication of the speech mode used for a recognition that results in no matches. The speech mode is either "dtmf" or "speech".
By default, Recognizer does not return the speech mode in a nomatch result:
<?xml version='1.0'?>
<result>
<interpretation>
<input><nomatch/></input>
<instance/>
</interpretation>
</result>
Set this parameter to add the speech mode:
<?xml version='1.0'?>
<result>
<interpretation>
<input mode="speech"><nomatch/></input>
<instance/>
</interpretation>
</result>