Tropo Scripting Development Guide Home  |  Frameset Home


event  return value


Represents the result of a system operation.


usage

event( choice: string,
    name: string,
    value: string )


parameters

choice Data Type: string Default: none Optional
Please note that the event structure has additional information available in a "choice" object. Specifically, there is an "event.choice" object that itself has the following fields:
  • event.choice.concept - Only tags or concepts returned from recognition.
  • event.choice.interpretation - Full semantic interpretation of the results.
  • event.choice.utterance - What the caller actually input before interpretation.
  • event.choice.confidence - The ASR engine's confidence in the result
  • event.choice.xml - The raw NLSML result returned from the underlying MRCP engine.
name Data Type: string Default: none Optional
Depending on the event that ends the method, the event.name attribute will be set to:

choice, record, timeout, badChoice, hangup, silenceTimeout, or error.
value Data Type: string Default: none Optional
The event.value attribute will be set for choice and record events, as will event.recordURI as appropriate. The rules are:

  • If choice and record are on, return event.name = choice, event.value = grammar result, and event.recordURI = recordURI
  • If choice is on but not record, return event.name = choice, event.value = grammar result, and event.recordURI = null
  • If record is on but not choice, return event.name = record, event.value = recordURI, and event.recordURI = recordURI



code samples

none


additional links

none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2010 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site