![]() |
Notification Flags |
Header: SpeechRecognition.h |
enum { kSRNotifyRecognitionBeginning = 1, kSRNotifyRecognitionDone = 2 };
If this bit is set, your application will be notified when the user starts speaking and recognition is ready to begin. When your application gets this notification, it must call either SRContinueRecognition or SRCancelRecognition in order for recognition either to continue or be canceled. If you do not call one of these functions, the recognizer will simply wait until you do (and hence appear to have quit working). Note that calling SRCancelRecognition cancels a recognition only for the application that requested it, not for all applications.
If this bit is set, your application will be notified when recognition is finished and the result (if any) of that recognition is available.
You can indicate which recognizer events you want your application be to notified of by setting the recognizers notification property, which is a property of type kSRNotificationParam. That propertys value is a 4-byte unsigned integer. The Speech Recognition Manager defines these masks for bits in that value.
© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)