Important: The information in this document is obsolete and should not be used for new development.
SRDrawRecognizedText
You can use theSRDrawRecognizedText
function to draw recognized text in the feedback window.
pascal OSErr SRDrawRecognizedText ( SRRecognizer recognizer, const void *dispText, Size dispLength);
recognizer
- A recognizer.
dispText
- The address of a buffer that contains the text to be drawn.
dispLength
- The size, in bytes, of the specified text.
DESCRIPTION
TheSRDrawRecognizedText
function draws the text specified by thedispText
anddispLength
parameters in the transcript portion of the feedback window associated with the recognizer specified by therecognizer
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.SPECIAL CONSIDERATIONS
If the value of thekSRWantsResultTextDrawn
property of the specified recognizer isTRUE
(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 callSRDrawRecognizedText
only when the value of the recognizer'skSRWantsResultTextDrawn
property isFALSE
.