| To: | realbasic-nug@lists.realsoftware.com, joe@inspiringapps.com |
|---|---|
| Subject: | Re: Checking if speech finished? |
| From: | Wade Maxfield <wmaxfield@gmail.com> |
| Date: | Thu, 30 Apr 2009 14:19:22 -0500 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com |
| Delivered-to: | listarchive@realsoftware.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=BJU64roAkNz1nLS6aX9aD1CpsJbt3NNvJ3JlmHIBXYM=; b=c3Y/iJATKRZV0iwyqtE+agcrLrJXcAHDyW6RhoSuo1Tfo6HFFggN8+YnWzJ1hYsM/H vbPnpXVm1om1zFB9aABFXnw8GlV671FSpNHnLKGbKmDpvUTUY6c0757TH9HE3aPdX2u/ 6KhcWSpK8jKY082mFUNEAkqTnexpUJ2lmdBfY= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=W9wsqV+aWa9gaD8kCpTGhRA7cpHIEYnQzZ4CdmoCQNQbfD/zlR1yhMkJV8l+27PQGA UphIWhNkhbySnumPElEeZhtI7N6kqUzTGliA3cyMWQwWdgQa1GRdgPj6SOlzxdz4hPQ3 Js9MNtzfMi/8Hfvqj0YCKK3bDvpeCBs3cDkfw= |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
From: Joe Strout <joe@inspiringapps.com>
Andy Dent wrote:
> If you use the Speak command, which does asynch speech on Mac and
> Windows, is there any way to tell that it has finished?
Only with declares. (And no, I don't have any handy -- in the past I've
done some speech stuff with declares on the Mac, but it turned out to be
hairier than it looked. Just checking whether the computer is speaking
might be easier though.)
function IsSpeaking() as boolean
#if TargetMacOS
soft Declare Function SpeechBusy Lib "Carbon" () as Short
dim r As short
try
r = SpeechBusy()
if r > 0 Then
Return True
end if
return False
Catch
Return False
end try
#endif
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Semi-OT] Messages not getting into archive, Thom McGrath |
|---|---|
| Next by Date: | Re: File Suggestions?, Mark O'Neill |
| Previous by Thread: | Re: Encodings, Trademarks, Files, and POSIX, Rubber Chicken Software Co. |
| Next by Thread: | Re: Checking if speech finished?, Andy Dent |
| Indexes: | [Date] [Thread] [Top] [All Lists] |