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: Charles Yeomans <charles@declareSub.com>
Date: Thu, 30 Apr 2009 11:04:49 -0400
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: <EFBD2814-7A6E-48B3-B747-ECBF3EF95BFA@oofile.com.au>
References: <EFBD2814-7A6E-48B3-B747-ECBF3EF95BFA@oofile.com.au>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Apr 30, 2009, at 5:17 AM, 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?

One of the options in rbKarel http://code.google.com/p/rbstuff/wiki/rbKarelOverview is to speak every action as it occurs.

This implies we would like the robot to not proceed until the previous action is completed, so I'd like some way to poll the speaking status or otherwise block on speech completion.

As this is an open source project, it can't rely on any proprietary plugins for this option.


For Mac OS, you can do this using Speech Synthesis Manager functions or NSSpeechSynthesizer, with some work. The Carbon functions all appear to execute asynchronously; I don't know about the Cocoa stuff.

Charles Yeomans

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