Function

CountVoices

Determines how many voices are available.

Declaration

OSErr CountVoices(SInt16 *numVoices);

Parameters

numVoices

On exit, a pointer to the number of voices that the application can use.

Return Value

A result code. See Result Codes.

Discussion

The CountVoices function returns, in the numVoices parameter, the number of voices available. The application can then use this information to call the GetIndVoice function to obtain voice specification structures for one or more of the voices.

Each time CountVoices is called, the Speech Synthesis Manager searches for new voices.

See Also

Getting Information About Voices

GetIndVoice

Gets a voice specification structure for a voice by passing an index to the GetIndVoice function.

GetVoiceDescription

Gets a description of a voice by using the GetVoiceDescription function.

GetVoiceInfo

Gets the same information about a voice that the GetVoiceDescription function provides, or to determine in which file and resource a voice is stored.

MakeVoiceSpec

Sets the fields of a voice specification structure.