Important: The information in this document is obsolete and should not be used for new development.
SRNewRecognizer
You can use theSRNewRecognizer
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
TheSRNewRecognizer
function returns, in therecognizer
parameter, a reference to a new recognizer that is associated with the recognition system specified by thesystem
parameter and that uses the speech source specified by thesourceID
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 iskSRLiveDesktopSpeechSource
.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 callSRNewRecognizer
.SPECIAL CONSIDERATIONS
You should call theSRReleaseObject
function to release the object reference returned bySRNewRecognizer
when you're done using it.