Motorola 1 User Manual

Page of 54
VoxML 1.0 Element Reference
INPUT Element : Type RECORD
October 1998
VoxML 1.0 Language Reference 32
1 <STEP NAME="init">
2     <PROMPT> Please say your first and last name.
3         </PROMPT>
4     <INPUT TYPE="record" TIMEOUT="7000"
5         NAME="theName" STORAGE="FILE"
6         NEXT="#reccomplete" NEXTMETHOD="GET"/>
7 </STEP>
In this example, the RECORD input type is used to record a another 7 second
audio sample, but this time the sample is stored in a file, instead of sent in the
HTTP request as it was in the earlier example.  The name of the file is chosen by
the voice browser automatically and is stored in the VoxML variable named
“theName”.  After storing the audio sample in the file, the voice browser will
continue execution at the URL specified by the NEXT attribute.
Note that in contrast to the earlier example, the value of the VoxML variable
“theName” will be the name of the audio file.  In the earlier example (where the
audio sample was transmitted via the HTTP request), the value of the VoxML
variable “theName” would be null.