Share via


text Property

  Microsoft Speech Technologies Homepage

Returns a string containing the text of the words recognized.

stringVar = listen.text

Remarks

In Semantic Markup Language (SML) format, this string is also contained in the text attribute of the highest level element.

Example

The following code demonstrates the use of the text property. The function handles a successful recognition from the listen element named listen1 by displaying the text of the utterance in a textbox named boxReco.

function Handleonreco() {
   boxStatus.value = listen1.status;
   boxReco.value = listen1.text;
   txtComments.value = listen1.recoresult.xml
}   

See Also

listen Element | Recognition Mode: Automatic |  Recognition Mode: Multiple | Recognition Mode: Single