New topic: MacOS X speech question
<http://forums.realsoftware.com/viewtopic.php?t=30452> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message crazymacsoftware.com Post subject: MacOS X speech questionPosted: Mon Oct 12, 2009 9:03 pm Joined: Sat Jun 20, 2009 7:08 pm Posts: 66 Hi, I have a question... I know how to get the computer to say something using the speak command or the unix terminal's say command But what if I want to stop the speaking? Code: Select Case hititem.text Case "Start Speaking..." speak readerwnd.bookarea.text Case "Stop Speaking..." //what goes here? End Select I believe Cocoa (Xcode) has a StartSpeaking: command and a StopSpeaking: command Does REALbasic have anything like this? I am interested in Stopping the speech Brian Top paulg Post subject: Re: MacOS X speech questionPosted: Mon Oct 12, 2009 10:39 pm Joined: Thu Oct 05, 2006 11:45 pm Posts: 513 Location: Planet Earth:North America:California Is it just me or do your posts keep posting twice. I did see two application icon posts and now I see two MacOS X speech question posts. Anyway to the topic, check out the Language Ref, specifically the entry for the Speak command. There is an optional interrupt flag that you should use to stop the speech. Pass it an empty string. So to speak something: Code: Speak ("Blah blah blah, I can speak.") To stop the speaking of the above, use the interrupt: Code: Speak (" ",True) Does that make sense? Make sure you understand what is going on before adding it to your prog. I think it is nice that you are asking what to search for in the forums with a lot of your previously answered questions, please don't forget to search or browse the Language Ref as it can save you a lot of time. HTH, -Paul _________________ This message made with 100% recycled pixels. MacBook CD2.0/2GB/OSX 10.6.1 / RB Pro 2k9R3 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
