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
Speech Recognition Manager Routines / Creating and Manipulating Recognizers


SRNewRecognizer

You can use the SRNewRecognizer function to create a new recognizer.

pascal OSErr SRNewRecognizer (
SRRecognitionSystem system, 
SRRecognizer *recognizer, 
OSType sourceID);
system
A recognition system.
recognizer
On exit, a reference to a new recognizer associated with the specified recognition system and using the specified speech source.
sourceID
A speech source ID.
DESCRIPTION
The SRNewRecognizer function returns, in the recognizer parameter, a reference to a new recognizer that is associated with the recognition system specified by the system parameter and that uses the speech source specified by the sourceID parameter. The Speech Recognition Manager supports several speech sources, which you can specify using these constants:

enum {
   kSRDefaultSpeechSource              = 0,
   kSRLiveDesktopSpeechSource          = 'dklv',
   kSRCanned22kHzSpeechSource          = 'ca22'
};
In version 1.5, the default speech source is kSRLiveDesktopSpeechSource. SRNewRecognizer may need to load substantial amounts of data from disk into memory. As a result, you might want to change the cursor to the watch cursor before you call SRNewRecognizer.

SPECIAL CONSIDERATIONS
You should call the SRReleaseObject function to release the object reference returned by SRNewRecognizer when you're done using it.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997