![]() |
Search Status Flags |
Header: SpeechRecognition.h |
enum { kSRIdleRecognizer = 1, kSRSearchInProgress = 2, kSRSearchWaitForAllClients = 4, kSRMustCancelSearch = 8, kSRPendingSearch = 16 };
If this bit is set, the search engine is not active and the user is able to make a new utterance.
If this bit is set, a search is currently in progress.
If this bit is set, a search is not currently in progress, but will begin as soon as every recognizer using the speech source used by this recognizer has called SRContinueRecognition to indicate that the search should begin.
If this bit is set, a search is about to be canceled (for example, because the recognizer determined a sound to be non-speech).
If this bit is set, a search is about to begin.
You can determine the current status of a recognizer search by getting the recognizers search status, which is a property of type kSRSearchStatusParam. 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)