Carbon


SpeechStatusInfo

Header: SpeechSynthesis.h

struct SpeechStatusInfo {
    Boolean outputBusy; 
    Boolean outputPaused; 
    SInt32 inputBytesLeft; 
    SInt16 phonemeCode;
};

Field descriptions

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. 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.

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 structure, which the SpeechStatusInfo data type defines.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)