A Tutorial Introduction to SALT5. The <PROMPT> elementA SALT <prompt> element creates an object that can produce speech and audio output to the user. We can script control of the object to specify what speech is produced and when it should start. The object can also detect that someone has started speaking while it is producing output. We can also control fine detail of the spoken text using a synthetic speech mark-up language. We give a basic introduction to the <prompt> element below, but for a more complete description refer to the SALT specification or the SASDK documentation. 5.1 XML structureThe essential XML structure of a <prompt> object is as follows: <prompt attributes> <param attributes /> // Speech system configuration prompt text <content attributes /> // Call on another resource prompt text <value attributes /> // Get text from another object </prompt> The <param>, <content> and <value> sub-elements are optional. Also the prompt text may be empty. 5.2 AttributesThe attributes of the <prompt> element are as follows:
5.3 PropertiesA prompt object has no interesting properties. 5.4 MethodsA prompt object has the following methods that may be called from a script function.
5.5 The prompt <content> elementThe <content> sub-element can be used to include in the output some text or some audio that is obtained from some external source. It has the following attributes:
Here is an example of the use of the <content> element: <prompt> <content href="/VoiceMailWelcome.ssml" type="application/ssml+xml" /> After the beep, please record your message: <content href="/wav/beep.wav" />. </prompt> 5.6 The prompt <value> elementThe <value> sub-element can be used to include in the output some text that has been obtained from some other object in the web page. It has the following attributes:
Here is an example of the use of the <value> element: <salt:prompt id="Prompt1"> You are traveling from <salt:value targetelement="fromCity" targetattribute="value"/> to <salt:value targetelement="toCity" targetattribute="value"/> </salt:prompt> Next: speech synthesis mark-up language.
|
|
University College London - Gower Street - London - WC1E 6BT - |