Carbon


SRCountItems

Header: SpeechRecognition.h Carbon status: Supported

Determines the number of subitems in a container object.

OSErr SRCountItems (
    SRSpeechObject container, 
    SInt32 *count
);
Parameter descriptions
container

A speech object.

count

On return, a pointer to a long containing the number of subitems in the specified speech object.

function result

A result code.

DISCUSSION

This function is useful only for speech objects that have distinguishable subitems, such as phrases (which contain words), paths (which contain words, phrases, and language models), and language models (which contain words, phrases, paths, and possibly other language models).

VERSION NOTES

In Speech Recognition Manager version 1.5, this function is useful only for operating on language objects (of type SRLanguageObject), although it is defined for all speech objects.

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)