Page 1 of 1

How to disable NBest matching?

Posted: Tue May 02, 2006 2:43 pm
by voiceready
I am working on integrating our speech application with your platform and have quick question. Your recognizer seems to want to return an array of results for each utterance it recognizes (ala-nbest). Is there a way to disable this?

For example, the following VoiceXML causes the engine/gateway to choke:

<filled>
<assign name="_inputmode" expr="application.lastresult$.inputmode"/>
<assign name="_confidencescore" expr="application.lastresult$.confidence"/>
<submit next="Processor" method="get" namelist="_inputmode _confidencescore" fetchaudio="audio_files/percolate.wav"/>
</filled>

This is what I see in the logs:

Found grammar match
hypothesis #0: number (0.7020)
Saved utterance 1 for DNIS 3140 on channel 2
errmsg TypeError: document.lastresult$ has no properties line 1 linetxt tokentxt
received event: error.semantic.ecmascript

Thanks in advance,

Jose de Castro
Application Architect

Code needed to correct behavior in IVR platform

Posted: Tue May 02, 2006 3:06 pm
by support
Hello,

Could you please provide a more complete example of the form item and IVR grammars you are using. With a very simple example both the application.lastresult$.* and application.lastresult$.* are filled in accordance with the VoiceXML specification:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
<form>
  <field name="feild1" type="digits">
    <prompt>Please enter some digits</prompt>
    <filled>
      <value expr="application.lastresult$.inputmode"/>
      <value expr="application.lastresult$[0].inputmode"/>
    </filled>
  </field>
</form>
</vxml>
This simple IVR example does work, however it is possible you are using the IVR platform in some unanticipated way that we will need to resolve. Please provide a simplified but complete IVR code example that demonstrates the behavior so that we can correct the behavior in the IVR platform.

Regards,
Plum Support

IVR platform says [i]document.lastresult$[/i] does not exist

Posted: Tue May 02, 2006 3:23 pm
by support
Hello,

Actually taking a second look at your IVR code, the IVR platform is complaining that document.lastresult$ does not exist. This is not a predefined variable in the VoiceXML specification and is not supported by the Plum IVR system. You should make use of application.lastresult$ for referencing any previous input on the IVR system.

Regards,
Plum Support