Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Speech Recognition Manager /
Chapter 1 - Speech Recognition Manager / Speech Recognition Manager Reference
Speech Recognition Manager Routines / Using the System Feedback Window


SRProcessEnd

You can use the SRProcessEnd function to indicate that a recognition result is done being processed.

pascal OSErr SRProcessEnd (SRRecognizer recognizer, Boolean failed);
recognizer
A recognizer.
failed
A Boolean value that determines how the feedback gestures are to be altered (FALSE) or not (TRUE).
DESCRIPTION
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.

SPECIAL CONSIDERATIONS
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 recognizer's kSRWantsAutoFBGestures property is FALSE.

Because the default value of the kSRWantsAutoFBGestures property is TRUE, most applications don't need to call SRProcessBegin. Calling SRProcessBegin is useful, however, when you know the resulting action might take a significant amount of time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997