choice

<choice>

It is used to specify grammar entry for menu’s grammar. The grammar entry could be either speech or DTMF. If the grammar entered is recognized then the one of the choice elements attributes (name, expr, and event) will have a value which determines which element needs to be executed next.

Attributes:

next

It specifies the next dialog to be visited and hence used for navigating. When the next dialog is within the same document then #<dialog variable name> can be used, if its outside the document then the full URI of the document must be specified followed by the dialog to be visited with # symbol in between them.

<URI of the document> #<dialog variable name>

event

Event to be thrown when a particular choice is chosen.

expr

Contains an ECMAScript expression which evaluates to the URI of the document to be visited

dtmf

DTMF sequence associated with the choice element.

caching

Can have two values fast and safe. When set to fast (default) a cached copy of the audio file will be used if already downloaded and still exists in the cache. When set to safe will download the audio file every time executing this element.

fetchhint

It can have two values safe and prefetch. Prefetch tells the interpreter to retrieve the file when the document is executed while safe indicates that the file can be downloaded only while executing this element.

fetchtimeout

It is the time the platform should wait for downloading the audio file before throwing a fetchtimeout error.

parent

Menu

children

PCDATA , audio , break, emphasis , enumerate , grammar , mark , paragraph ,

phoneme, prosody , say-as , sentence , value , voice.