recoresult Property
Returns the results of recognition. Read-only.
xmlNode = listen.recoresult
Remarks
The recoresult property holds an Extensible Markup Language (XML) node containing the recognition results in the Semantic Markup Language (SML) format. In case of no recognition, the property returns null. Using this recognition result allows developers to obtain the SML structure and parse it as the application needs.
Example
The following code demonstrates the use of the recoresult property. The function is a handler for an onreco event. It displays the value of the SML recognition result in a text box named textbox1. The structure event is a standard eventing mechanism and is not unique to SALT.
function Handleonreco() {
textbox1.value = event.srcElement.recoresult.xml;
}
See Also
listen Element | Recognition Mode: Automatic | Recognition Mode: Multiple | Recognition Mode: Single