![]() |
SRProcessEnd |
||||
Header: | SpeechRecognition.h | Carbon status: | Supported | |
Indicates that a recognition result is done being processed.
OSErr SRProcessEnd ( SRRecognizer recognizer, Boolean failed );
A recognizer.
A Boolean value that determines how the feedback gestures are to be altered (FALSE) or not (TRUE).
A result code.
The SRProcessEnd function causes the Speech Recognition Manager to provide the relevant feedback (in the feedback window associated with the recognizer specified by the recognizer parameter) indicating that a recognition result is done being processed. Currently, the gestures of the feedback character are changed and a response sound is played.
If the value of the kSRWantsAutoFBGestures property of the specified recognizer is TRUE, the Speech Recognition Manager calls SRProcessBegin internally before notifying your application of a recognition result, and it calls SRProcessEnd internally after your application is notified. As a result, you should call SRProcessBegin or SRProcessEnd only when the value of the recognizers kSRWantsAutoFBGestures property is FALSE.
Because the default value of the kSRWantsAutoFBGestures property is TRUE, most applications do not need to call SRProcessBegin. Calling SRProcessBegin is useful, however, when you know the resulting action might take a significant amount of time.
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)