(VoiceXML 2.1 feature) As described in section 3.3.2 of [SSML], the <mark> element places a marker into the text/tag sequence. An SSML processor must either allow the VoiceXML interpreter to retrieve information, or must inform the interpreter, when a <mark> is executed during audio output. The <mark> element provides a convenient way to detect at which point a user barge-in has occurred.
For details on using <mark> within SSML, click here.
Note: The <vxml> version attribute must be specified as 2.1 (or higher) to use this feature.
|
|
Attribute |
Description |
|
name |
The name of this mark. This name is used when setting appropriate shadow variables as described below. Optional. |
|
nameexpr |
An ECMAScript expression to be evaluated and used as the |
nameexpr cannot be evaluated, an error.semantic event is thrown.The following two properties of the application.lastresult$ object are set whenever the application.lastresult$ object is assigned and a <mark> has been executed:
application.lastresult$.markname - the name of the mark last executed by the SSML processor before barge-in occurred or the end of audio playback occurred. If no mark was executed, this variable is undefined.application.lastresult$.marktime - the number of milliseconds that elapsed since the last mark was executed by the SSML processor, until barge-in occurred or the end of audio playback occurred. If no mark was executed, this variable is undefined.Note: When a <mark> is executed during the processing of a form item (ex. <field>, <record>, etc.), the interpreter also sets itemName$.markname and itemName$.marktime shadow variables for the form item, with the same values used for the lastresult shadow variables above.
None
None
<mark>. That is, when a <mark> is executed during audio output, if the SSML processor neither allows the VoiceXML interpreter to retrieve the mark information nor informs the interpreter about the mark, then the interpreter will not have any mark information to store in the markname and marktime variables. Refer to your TTS vendor documentation for support details.Note: Some versions of RealSpeak may only support numeric mark names (ex. "1234"). In that case, the following example would need to be modified. Please see vendor documentation for details.
|