Current understanding:
To my understanding, the functionality of a <prompt>
element is to define prompt audio to be played, followed by the system waiting for a user utterance. My impression comes from the VoiceXML 2.0 specification for prompts:
Conceptually, prompts are instantaneously queued for play, so interpretation proceeds until the user needs to provide an input. At this point, the prompts are played, and the system waits for user input.
Additionally, I understand the difference between a <block>
and a <field>
to be that:
- a
<block>
is a control item and is "not for gathering input", and - a
<field>
is an input item whose value is "gather[ed] from the user"
Lastly, I know that a <prompt>
can be a direct child of both a <block>
and <field>
.
Questions:
I am pretty sure that a
<prompt>
collects input when inside a<field>
, but what is supposed to happen when it is inside a<block>
, since blocks are control items?In the case that a
<prompt>
in a<block>
does not collect input and only plays audio, why wouldn't you instead write the text for a prompt as content inside a<block>
, omitting the<prompt>
?