Carbon


SRNewWord

Header: SpeechRecognition.h Carbon status: Supported

Creates a new word.

OSErr SRNewWord (
    SRRecognitionSystem system, 
    SRWord *word, 
    const void *text, 
    Size textLength
);
Parameter descriptions
system

A recognition system.

word

On return, a reference to a new word associated with the specified recognition system.

text

A pointer to a buffer that contains the characters that comprise the word.

textLength

The size, in bytes, of the specified text.

function result

A result code.

DISCUSSION

You should call the SRReleaseObject function to release the word reference returned by SRNewWord 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)