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.
SpeechBusy
You can use theSpeechBusyfunction to determine whether any channels of speech are currently synthesizing speech.
FUNCTION SpeechBusy: Integer;DESCRIPTION
TheSpeechBusyfunction returns the number of speech channels that are currently synthesizing speech in the application. This is useful when you want to ensure that an earlier speech request has been completed before having the system speak again. Note that paused speech channels are counted among those that are synthesizing speech.The speech channel that the Speech Manager allocates internally in response to calls to the
SpeakStringfunction is counted in the number returned bySpeechBusy. Thus, if you use justSpeakStringto initiate speech,SpeechBusyalways returns 1 as long as speech is being produced. WhenSpeechBusyreturns 0, all speech has finished.SPECIAL CONSIDERATIONS
You can call the SpeechBusy function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SpeechBusy function are
Trap macro Selector _SoundDispatch$003C000C