Carbon


VoiceSpec

Header: SpeechSynthesis.h

struct VoiceSpec {
    OSType creator; 
    OSType id;
};
typedef VoiceSpec VoiceSpecPtr;

Field descriptions

creator

The synthesizer that is required to use the voice. This is equivalent to the value contained in the synthManufacturer field of a speech version information structure and that contained in the synthCreator field of a speech extension data structure. The set of OSType values specified entirely by space characters and lowercase letters is reserved.

id

The voice ID of the voice for the synthesizer. Every voice on a synthesizer has a unique ID.

A voice specification structure provides a unique specification that you must use to obtain information about a voice. You also must use a voice specification structure if you wish to create a speech channel that generates speech in a voice other than the current system default voice. The VoiceSpec data type defines a voice specification structure. In Pascal, the VoiceSpecPtr data type defines a pointer to a voice specification structure. The VoiceSpecPtr data type is not defined in the interface files for C programmers. If you are programming in C and you need to pass a variable of type VoiceSpecPtr to a Speech Manager function, simply pass a pointer to a voice specification structure instead.

To ensure compatibility with future versions of the Speech Manager, you should never fill in the fields of a voice specification structure yourself. Instead, you should create a voice specification structure by using the MakeVoiceSpec function.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)