Carbon


Recognition System Properties

Header: SpeechRecognition.h

enum {
    kSRFeedbackAndListeningModes = 'fbwn',
    kSRRejectedWord = 'rejq',
    kSRCleanupOnClientExit = 'clup'
};

Constant descriptions

kSRFeedbackAndListeningModes

The feedback and listening modes of the recognition system. The value of this property is an integer that determines some of the features of a recognizer subsequently created by your application. See “Feedback and Listening Mode Constants” for a description of the values possible here.

The default value for version 1.5 is kSRNoFeedbackNoListenModes, but most applications should set this to kSRHasFeedbackHasListenModes.

kSRRejectedWord

The rejected word of the recognition system. The value of this property is a value of type SRWord that will be returned in a recognition result object when a recognizer encounters an unrecognizable utterance. For example, if an utterance is rejected, the kSRLMObjType property of the rejection result is the rejected word. By default, a recognition system’s rejected word is spelled “???” and has a reference constant of 0.

kSRCleanupOnClientExit

The cleanup mode of the recognition system. Applications should never set this property. If, however, you do not have a process ID (as issued by the Process Manager), you should set this property to FALSE so that speech objects you allocate will not be associated with any other process. By default, the value of a recognition system’s cleanup mode is TRUE.

A recognition system (that is, an instance of the SRRecognitionSystem class) has a set of properties that you can inspect and change by calling the SRGetProperty and SRSetProperty functions. You specify a property by passing a property selector to those functions. The Speech Recognition Manager defines these property selectors for recognition systems.


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