Important: The information in this document is obsolete and should not be used for new development.
SRProcessEnd
You can use theSRProcessEnd
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
TheSRProcessEnd
function causes the Speech Recognition Manager to provide the relevant feedback (in the feedback window associated with the recognizer specified by therecognizer
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 thekSRWantsAutoFBGestures
property of the specified recognizer isTRUE
, the Speech Recognition Manager callsSRProcessBegin
internally before notifying your application of a recognition result, and it callsSRProcessEnd
internally after your application is notified. As a result, you should callSRProcessBegin
orSRProcessEnd
only when the value of the recognizer'skSRWantsAutoFBGestures
property isFALSE
.Because the default value of the
kSRWantsAutoFBGestures
property isTRUE
, most applications don't need to callSRProcessBegin
. CallingSRProcessBegin
is useful, however, when you know the resulting action might take a significant amount of time.