Plum DEV Documentation


This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:properties:recordutterance [2014/06/02 16:25]
jennifer added meta description
voicexml:properties:recordutterance [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​recordutterance VoiceXML property | recordutterance enables the recording of audio during speech recognition.}} 
-**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 [[voicexml:​appandsessionvars|Application and Session Variables]] for more information. 
-<?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>​ 
-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.