Important: The information in this document is obsolete and should not be used for new development.
Listen Key Modes
You can get (but not set) a recognizer's listen key mode by accessing its property of typekSRListenKeyMode
. 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.