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
Constants


Search Status Flags

You can determine the current status of a recognizer search by getting the recognizer's search status, which is a property of type kSRSearchStatusParam. That property's value is a 4-byte unsigned integer. The Speech Recognition Manager defines the following masks for bits in that value:

enum {
   kSRIdleRecognizer                   = 1L<<0,
   kSRSearchInProgress                 = 1L<<1,
   kSRSearchWaitForAllClients          = 1L<<2,
   kSRMustCancelSearch                 = 1L<<3,
   kSRPendingSearch                    = 1L<<4
};
Constant descriptions

kSRIdleRecognizer
If this bit is set, the search engine is not active and the user is able to make a new utterance.
kSRSearchInProgress
If this bit is set, a search is currently in progress.
kSRSearchWaitForAllClients
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.
kSRMustCancelSearch
If this bit is set, a search is about to be canceled (for example, because the recognizer determined a sound to be non-speech).
kSRPendingSearch
If this bit is set, a search is about to begin.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997