This document was generated from CDN thread
Created by: null on 20-11-2003 09:57:58 PM
Is it possible to reference a VXML variable in an Audio element. For example, if I wanted to play the application.lastresult$.length' value in a Say it Smart audio item, is it possible?
Subject: RE: Referencing VXML variables
Replied by: null on 21-11-2003 04:28:34 PM
Hi,
It is possible to playback any Audium session/element data in any voice element including Audio. Depending on the element, it may create element data specific to the element. This element data may sometimes be directly related to a voicexml browser variable. For example, one of element data values that the Audium Form element creates is nbestInterpretation1, which corresponds with the vxml browser variable application.lastresult$[0].interpretation.
If there is a vxml variable that does not have a Audium session/element data equivalent, it cannot be played in a voice element until it has been stored as Audium session/element data. If the voice element you are using does not store the data you want, then you should create your own voice element that does so. In general, voice elements that Audium ships with store the relevant data necessary for most voice applications. The Form element provides the most data. More information about session/element data is available in the Audium User Guide (p. 63) and details about what element data is created by Audium elements is available in the Element Specifications document.
Regards,
Joe