Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.
MakeVoiceSpec
To set the fields of a voice specification record, you should use theMakeVoiceSpecfunction. You should never set the fields of such a record directly.
FUNCTION MakeVoiceSpec (creator: OSType; id: OSType; voice: VoiceSpecPtr): OSErr;
creator- The ID of the synthesizer that your application requires.
id- The ID of the voice on the synthesizer specified by the
creatorparameter.voice- A pointer to the voice specification record whose fields are to be filled in.
DESCRIPTION
A voice specification record is a unique voice ID used by the Speech Manager. Most voice management routines expect to be passed a pointer to a voice specification record. When you already know the creator and ID for a voice, you should use theMakeVoiceSpecfunction to create such a record rather than filling in the fields of one directly. On exit, the voice specification record pointed to by thevoiceparameter contains the appropriate values.SPECIAL CONSIDERATIONS
You can call theMakeVoiceSpecfunction at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theMakeVoiceSpecfunction are
Trap macro Selector _SoundDispatch$0604000C RESULT CODES
noErr 0 No error