Jump to: navigation, search

Update attribute to gvp:recordutterance

SUMMARY: Update unknown attribute saveutterance to recordutterance.

The next publication of the GVP 8.1 Voice XML Help will include this revision:

TOPIC: Recognizing Recorded Utterance
The "GVP 8.1 Voice XML Help" document contains a "Recognizing Recorded Utterance" topic. In the 3rd example (Speech input from the recording of the caller's earlier input), it suggests using "saveutterance" as an attribute of <field>:

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
  <meta name="maintainer" content="<yourname>@<yourserver.com>"/>
  <meta name="application" content="Recorded Audio Input 3"/>
  <property name="ASRENGINE" value="SPEECHWORKS"/>
  <property name="bargein" value="false"/>
     <grammar xml:lang="en-US" version="1.0" root="ROOT"
              xmlns="http://www.w3.org/2001/06/grammar" type="application/srgs+xml">
        <rule id="ROOT" scope="public">
           <item> goodbye <tag>command='goodbye';</tag> </item>
     <field name="field1" saveutterance="true" slot="command">
           Please say goodbye.
        <catch event="nomatch noinput">
           Try again.
           I recognized goodbye with a confidence of 
           <value expr="field1$.confidence"/>.
           Let's make sure I'm a consistent recognizer.
     <field name="field2" audioinexpr="field1$.utteranceaudio" slot="command">
           Please say goodbye.
           I recognized goodbye with a confidence of
           <value expr="field2$.confidence"/>.
           <if cond="field1$.confidence == field2$.confidence">
              See, I am a consistent recognizer!
              I guess I'm not a consistent recognizer.

This should be updated to "gvp:recordutterance".

The namespace extension should be added to the <vxml> tag. That is, change:

<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">


<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xmlns:gvp="http://www.genesyslab.com/2006/vxml21-extension">

Also, change saveutterance to recordutterance in the following line in the Getting Started section, on the same page:

The shadow variable $.utteranceaudio from an earlier <field>, if saveutterance is enabled.

This page was last modified on August 24, 2017, at 02:28.


Comment on this article:

blog comments powered by Disqus