Carbon


Search Status Flags

Header: SpeechRecognition.h

enum {
    kSRIdleRecognizer = 1,
    kSRSearchInProgress = 2,
    kSRSearchWaitForAllClients = 4,
    kSRMustCancelSearch = 8,
    kSRPendingSearch = 16
};

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.

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 these masks for bits in that value.


© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)