The record element on a listen element enables the recording of audio input from the user. Only one record element is permitted in a single listen. Recording may be used in addition to recognition or in place of it, according to the abilities of the platform and its profile. The attributes, properties and methods of listen are used in the recording case with equivalent or appropriate semantics. This section explains these features for recording scenarios, and a full example can be found in section 2.6.8 of the SALT 1.0 Specs.
For concurrent recognition and recording in a single listen (e.g. using 'hotword' recognition to end a recording), both grammar and record may be used. The attributes of record configure the recording process, and the attributes, properties, methods and event handlers of listen should be considered to apply to the speech recognition process. The mode of recognition used will typically determine the overall behavior of such a listen object. The results of both recognition and recording will be contained in the recoresult returned to the browser (whether recognition is a success or a failure) and all the relevant properties of the listen object will be updated.
| Name | Data type | Default |
|---|---|---|
boolean |
"false" |
|
content.type |
"audio/wav;codec=g711" |
none
none
|
<form id="f1" action="http://www.example.com/savewaveform.aspx"
|
For details on usage of this element, see the SALT Specification, Version 1.0.