US: 800.995.PLUM UK: 0845.355.3330
US: 800.995.PLUM UK: 0845.355.3330
A link element may have one or more grammars that are scoped to the element containing the <link>. The <link> element allows users to implement a grammar within a root document that could be acted upon by their leaf documents. The fetchaudio attribute is the URI of the audio clip to play while the fetch is being done. If not specified, the fetchaudio property is used, and if that property is not set, no audio is played during the fetch. The fetching of the audio clip is governed by the audiofetchhint, audiomaxage, audiomaxstale, and fetchtimout properties in effect at the time of the fetch. The playing of the audio clip is governed by the fetchaudiodelay and fetchaudiominimum properties in effect at the time of the fetch. The fetchtimeout attribute is the timeout used for fetches. This property must be specified with the appropriate time units, typically in seconds. The maxage tells the platform the maximum acceptable age, in seconds, of the cached documents. Maxstale tells the platform the maximum acceptable staleness, in seconds, of expired cached documents. The next attribute specifies the URI to go to. The URI is a document (perhaps with an anchor to specify the starting dialog) or a dialog in the current document (just a bare anchor). The DTMF attribute specifies the DTMF sequence for this link. It is equivalent to a simple DTMF <grammar> and DTMF properties to recognition of the sequence. The event specifies an event to be thrown instead of specifying a next. The eventexpr is an ECMAScript expression evaluating to the name of the event to be thrown. The message attribute is a message string providing additional context about the event being thrown. The message is available as the value of the variable “message” within the scope of the catch element. The messageexpr element is an ECMAScript expression evaluating to the message string. Exactly one of the next, expr, event, and eventexpr must be specified, and exactly one of message and messageexpr may be specified.
| © 2013 The Plum Group, Inc. |