Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 4 - Speech Manager / Speech Manager Reference
Data Structures


Legacy Documentclose button

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.

Voice File Information Records

A voice file information record specifies the file in which a voice is stored and the resource ID of the voice within that file. You can use the GetVoiceInfo function to obtain a voice file information record for a voice. The VoiceFileInfo data type defines a voice file information record. In Pascal, the VoiceFileInfoPtr data type defines a pointer to a voice file information record.

TYPE VoiceFileInfo =
RECORD
   fileSpec:   FSSpec;     {volume, dir, and name of file}
   resID:      Integer;    {resource ID of voice in the file}
END;
Field Description
fileSpec
A file system specification record that contains the volume, directory, and name of the file containing the voice. Generally, files containing a single voice are of type kTextToSpeechVoiceFileType, and files containing multiple voices are of type kTextToSpeechVoiceBundleType.
resID
The resource ID of the voice in the file. Voices are stored in resources of type kTextToSpeechVoiceType.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996