recordutterance

recordutterance

Default Value: false

Enables recording during recognition. If the recordutterance property is set to true, three shadow variables are set on the appropriate form item variable: recording, recordingsize, and recordingduration. See Application and Session Variables for more information.

Example

<?xml version="1.0"?>
<vxml version="2.0">
  <property name="recordutterance" value="true"/>
  <form>
    <field name="first_name" type="firstname">
      <prompt bargein="false">
        <audio src="en_us/enter_first_name.wav">
          Please say your first name and spell it.
        </audio>
      </prompt>
      <filled>
        Your recording is <value expr="first_name$.recording"/>.
        The recording size is <value expr="first_name$.recordingsize"/> bytes.
        The recording duration is <value expr="first_name$.recordingduration"/> milliseconds.
      </filled> 
    </field>
  </form>
</vxml>

Explanation

From this example, the “recordutterance” attribute sets up three shadow variables: recording, recordingsize, and recordingduration. The recording shadow variable contains the last utterance if audio was collected. The recordingsize shadow variable contains the last utterance recording size in bytes. The recordingduration shadow variable contains the last utterance duration size in milliseconds.

Notes

None

Last updated