VoxML 1.0 Element Reference

INPUT Element : Type RECORD

1 <STEP NAME="init">

2<PROMPT> Please say your first and last name.

3</PROMPT>

4<INPUT TYPE="record" TIMEOUT="7000"

5NAME="theName" STORAGE="FILE"

6NEXT="#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.

October 1998

VoxML 1.0 Language Reference 32

Page 36
Image 36
Motorola 1 manual Prompt