Motorola 1 manual Prompt

Page 36

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

Image 36
Contents VoxML Language Reference RevisionPage Contents Appendices What is VoxML OverviewPurpose of this Document Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideACK Element SyntaxAttributes Examples Audio Element Break Element Cancel Element Next step URLExamples Case Element Class Element IntegerExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Input Element Type Date Data FormatInput Element Type Digits Input Element Type Grammar Input Element Type Hidden Input Element Type Money Input Element Type None Input Element Type Number Input Element Type Optionlist Input Element Type Phone Input Element Type PROFILE‡ Input Element Type Record Prompt Input Element Type Time Input Element Type Yorn Option Element VoxML 1.0 Element Reference Options Element Or Element Syntax AttributesPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Value Element PromptAppendices Appendix a VoxML 1.0 Document Type DefinitionOctober VoxML 1.0 Language Reference Appendix B Vcard Profile Names and Subtypes Vcard Profile Names and SubtypesFirst