Motorola 1 manual Input Element Type Record

Page 35

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

Image 35
Contents Revision VoxML Language ReferencePage Contents Appendices Purpose of this Document What is VoxMLOverview DIALOGs and STEPs Structure of a VoxML DocumentBasic Elements VoxML 1.0 Application Development Guide Other Reference DocumentationAttributes ACK ElementSyntax Examples Audio Element Break Element Next step URL Cancel ElementExamples Case Element Integer Class ElementExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Data Format Input Element Type DateInput 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 Syntax Attributes Or ElementPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Prompt Value ElementAppendix a VoxML 1.0 Document Type Definition AppendicesOctober VoxML 1.0 Language Reference Vcard Profile Names and Subtypes Appendix B Vcard Profile Names and SubtypesFirst