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 theGetVoiceInfo
function to obtain a voice file information record for a voice. TheVoiceFileInfo
data type defines a voice file information record. In Pascal, theVoiceFileInfoPtr
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 typekTextToSpeechVoiceBundleType
.resID
- The resource ID of the voice in the file. Voices are stored in resources of type kTextToSpeechVoiceType.