Important: The information in this document is obsolete and should not be used for new development.
SRNewRecognizer
You can use theSRNewRecognizerfunction 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
TheSRNewRecognizerfunction returns, in therecognizerparameter, a reference to a new recognizer that is associated with the recognition system specified by thesystemparameter and that uses the speech source specified by thesourceIDparameter. 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 iskSRLiveDesktopSpeechSource.SRNewRecognizermay 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 callSRNewRecognizer.SPECIAL CONSIDERATIONS
You should call theSRReleaseObjectfunction to release the object reference returned bySRNewRecognizerwhen you're done using it.