realbasic-nug
[Top] [All Lists]

Re: Checking if speech finished?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Checking if speech finished?
From: Andy Dent <dent@oofile.com.au>
Date: Fri, 1 May 2009 08:03:47 +0800
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
Delivered-to: listarchive@realsoftware.com
In-reply-to: <45a1b53e0904301219r506ec028m3974208370d0b668@mail.gmail.com>
References: <45a1b53e0904301219r506ec028m3974208370d0b668@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 05/01/2009, at 3:19 AM, Wade Maxfield wrote:

function IsSpeaking() as boolean
 #if TargetMacOS

Thanks Wade, you're a star!

It worked very nicely:

Sub SpeakSynchronously(msg as string)
  // tries to wait politely until speech is completed
  Speak msg
  while IsSpeaking
    app.SleepCurrentThread 50
  wend
End Sub


As the initial class using rbKarrel are Mac-based, this will make them very happy.

I have put it up in the rbstuff project:

http://code.google.com/p/rbstuff/source/browse/trunk/Common/SpeechUtilties.xml

regards

Andy Dent
Freelance Designer-Developer - C++,  C#, Objective-C, Python, REALbasic


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