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 theSpeechBusy
function to determine whether any channels of speech are currently synthesizing speech.
FUNCTION SpeechBusy: Integer;DESCRIPTION
TheSpeechBusy
function 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
SpeakString
function is counted in the number returned bySpeechBusy
. Thus, if you use justSpeakString
to initiate speech,SpeechBusy
always returns 1 as long as speech is being produced. WhenSpeechBusy
returns 0, all initiated 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