Plum DEV Documentation
voicexml:properties:recordutterancetype

Differences

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

Link to this comparison view

voicexml:properties:recordutterancetype [2014/06/02 16:26]
jennifer added meta description
voicexml:properties:recordutterancetype [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​recordutterancetype VoiceXML property | recordutterancetype specifies the media format of utterance recordings.}} 
-=====recordutterancetype===== 
- 
- 
-**Default Value:** "​audio/​basic"​ 
- 
- 
-Specifies the media format of utterance recordings. 
- 
-\\  \\ 
-====Example==== ​ 
- 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <​property name="​recordutterance"​ value="​true"/>​ 
-  <​property name="​recordutterancetype"​ value="​audio/​l16"/>​ 
-  <​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>​ 
-</​code>​ 
- 
-====Explanation==== 
- 
-From this example, "​recordutterancetype"​ is set to audio/l16, which is linear 16-bit PCM. The audio format can also be set to audio/basic (µ-law encoded PCM), audio/​x-alaw-basic (a-law encoded PCM), or audio/x-wav (Microsoft WAV format encoded with any of the 3 formats mentioned previously). 
- 
-====Notes==== 
- 
-None 
-