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


Listen Key Modes

You can get (but not set) a recognizer's listen key mode by accessing its property of type kSRListenKeyMode. That property's value is a 2-byte unsigned integer that determines whether the listen key operates in push-to-talk or toggle-listening mode. The Speech Recognition Manager defines these constants for listen key modes:

enum {
   kSRUseToggleListen                  = 0,
   kSRUsePushToTalk                    = 1
};
Constant descriptions

kSRUseToggleListen
The recognizer interprets presses on the listen key as a toggle to turn listening on or off.
kSRUsePushToTalk
The recognizer listens only when the listen key is held down.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997