![]() |
PhonemeInfo |
Header: SpeechSynthesis.h |
struct PhonemeInfo { SInt16 opcode; Str15 phStr; Str31 exampleStr; SInt16 hiliteStart; SInt16 hiliteEnd; };
The opcode for the phoneme.
The string used to represent the phoneme. The string does not necessarily have a phonetic connection to the phoneme, but might simply be an abstract textual representation of it.
An example word that illustrates use of the phoneme.
The number of characters in the example word that precede the portion of that word representing the phoneme.
The number of characters between the beginning of the example word and the end of the portion of that word representing the phoneme.
Information about a phoneme is stored in a phoneme information structure. Ordinarily, you use a phoneme information structure to show the user how to enter text to represent a particular phoneme when the 'PHON' input mode is activated. The PhonemeInfo data type defines a phoneme information structure.
You might use the information contained in the hiliteStart and hiliteEnd fields to highlight the characters in the example word that represent the phoneme.
To obtain a phoneme information structure for an individual phoneme, you must obtain a list of phonemes through a phoneme descriptor structure.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)