![]() |
SRDrawRecognizedText |
||||
Header: | SpeechRecognition.h | Carbon status: | Supported | |
Draws recognized text in the feedback window.
OSErr SRDrawRecognizedText ( SRRecognizer recognizer, const void *dispText, Size dispLength );
A recognizer.
A pointer to a buffer that contains the text to be drawn.
The size, in bytes, of the specified text.
A result code.
The SRDrawRecognizedText function draws the text specified by the dispText and dispLength parameters in the transcript portion of the feedback window associated with the recognizer specified by the recognizer parameter. The text is drawn in the style characteristic of all recognized text. You might want to use this function to display a recognized phrase using a different spelling than the one used in the language model.
If the value of the kSRWantsResultTextDrawn property of the specified recognizer is TRUE (which is the default value), a transcript of the text of a recognition result is automatically sent directly to the feedback window. As a result, you should call SRDrawRecognizedText only when the value of the recognizers kSRWantsResultTextDrawn property is FALSE.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)