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.

Speech Status Information Records

By calling the GetSpeechInfo function with the soStatus selector, you can find out information about the status of a speech channel. This information is stored in a speech status information record, which the SpeechStatusInfo data type defines.

TYPE SpeechStatusInfo =
RECORD
   outputBusy:       Boolean;    {TRUE if audio is playing }
                                 { or text is being processed}
   outputPaused:     Boolean;    {TRUE if channel is paused}
   inputBytesLeft:   LongInt;    {bytes of text left to process}
   phonemeCode:      Integer;    {opcode for current phoneme}
END;
Field Description
outputBusy
Whether the speech channel is currently producing speech. A speech channel is considered to be producing speech even at some times when no audio data is being produced through the Macintosh speaker. This occurs, for example, when the Speech Manager is processing an input buffer but has not yet initiated speech or when speech output is paused.
outputPaused
Whether speech output in the speech channel has been paused by a call to the PauseSpeechAt function.
inputBytesLeft
The number of input bytes of the text that the speech channel must still process. When inputBytesLeft is 0, the buffer of input text passed to one of the SpeakText or SpeakBuffer functions may be disposed of. (Note that when you call the SpeakString function, the Speech Manager stores a duplicate of the string to be spoken in an internal buffer; thus, you may delete the original string immediately after calling SpeakString.)
phonemeCode
The opcode for the phoneme that the speech channel is currently processing.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996