Carbon


SRNewRecognizer

Header: SpeechRecognition.h Carbon status: Supported

Creates a new recognizer.

OSErr SRNewRecognizer (
    SRRecognitionSystem system, 
    SRRecognizer *recognizer, 
    OSType sourceID
);
Parameter descriptions
system

A recognition system.

recognizer

On return, a reference to a new recognizer associated with the specified recognition system and using the specified speech source.

sourceID

A speech source ID. See “Speech Source Constants”.

function result

A result code.

DISCUSSION

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.

You should call the SRReleaseObject function to release the object reference returned by SRNewRecognizer when you are done using it.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)