VoxML 1.0 Element Reference
INPUT Element : Type RECORD
INPUT Element : Type RECORD
The RECORD input type is used to record an audio sample and to store that sample in a location specified by the application developer.
Syntax
<INPUT TYPE="RECORD" TIMEOUT="value" STORAGE="value" [FORMAT="value"] [NAME="value"] NEXT="value" [NEXTMETHOD="value"] />
Attributes
Attribute Name | Allowed Values |
|
|
TIMEOUT | record for milliseconds (integer) |
|
|
FORMAT | recorded audio format (audio/wav *) |
|
|
NAME | identifier |
|
|
STORAGE | FILE |
| REQUEST |
|
|
NEXT | next step URL |
|
|
NEXTMETHOD | GET * |
| POST |
| PUT |
Examples
1 <STEP NAME="init">
2<PROMPT> Please say your first and last name.
3</PROMPT>
4<INPUT TYPE="record" TIMEOUT="7000"
5NAME="theName" STORAGE="REQUEST"
6NEXT="http://wavhost/acceptwav.asp"
7NEXTMETHOD="POST"/>
8</STEP>
In this example, the RECORD input type is used to record a 7 second audio sample, and then “POST” that sample to the remote machine named “wavhost”. The response to the “POST” must be a VoxML DIALOG which continues the execution of the application.
Note that nothing is stored in the VoxML variable named “theName”; the recorded audio is sent to the remote machine instead.
October 1998 | VoxML 1.0 Language Reference 31 |