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


Gestalt Selectors and Response Values

You can pass the gestaltSpeechRecognitionVersion selector to the Gestalt function to determine the version of the Speech Recognition Manager installed on a computer.

enum {
   gestaltSpeechRecognitionVersion     = 'srtb',
   gestaltSpeechRecognitionAttr        = 'srta'
};
Gestalt returns a long word in the response parameter that is the current version number of the Speech Recognition Manager. If the value of the response parameter is 0x00000000 (or if Gestalt returns an error), the Speech Recognition Manager is not available on the target computer.

You can pass the gestaltSpeechRecognitionAttr selector to the Gestalt function to get the attributes of the Speech Recognition Manager. Gestalt returns information to you by returning a long word in the response parameter. The returned values are defined by constants:

enum {
   gestaltDesktopSpeechRecognition     = 1L<<0,
   gestaltTelephoneSpeechRecognition   = 1L<<1
};
Constant descriptions

gestaltDesktopSpeechRecognition
If this bit is set, the Speech Recognition Manager supports the desktop microphone.
gestaltTelephoneSpeechRecognition
If this bit is set, the Speech Recognition Manager supports telephone input. In versions 1.5 and earlier, this bit is always 0.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997