Speech

Sharing and discussing custom actions for LaunchBar
Post Reply
ptujec
Wizard
Wizard
Posts: 321
Joined: Fri Dec 19, 2008 11:36 am
Contact:

Speech

Post by ptujec » Sat Dec 03, 2011 12:24 pm

Hi, I would really appreciate if you could share the speech script. Now with a decent German voice in Lion I would like to use both German and English.
I have a basic script but I can't stop it without forcing LaunchBar to quit.

Code: Select all

on handle_string(s)
   
   say s using "Anna"
   
end handle_string

iRounak
Rank 4
Rank 4
Posts: 191
Joined: Fri Oct 23, 2009 7:11 pm
Contact:

Re: Speech

Post by iRounak » Sun Jul 01, 2012 8:52 am

As much as I understand, to stop the speech, you need to identify the process that is responsible for the speech and kill it. That is not going to be easy.

This is the best I could do:
Save this script (call it "Restart LaunchBar") as an application:

Code: Select all

do shell script "killall LaunchBar"
tell application "LaunchBar" to activate


Run your script as usual. To stop speaking open "Restart LaunchBar" via Spotlight (very inelegant, I know). If you use any applications (like Spark) that allow you to set global keyboard shortcuts then you can use such shortcut to launch "Restart LaunchBar".

ptujec
Wizard
Wizard
Posts: 321
Joined: Fri Dec 19, 2008 11:36 am
Contact:

Re: Speech

Post by ptujec » Fri Nov 09, 2012 2:31 pm

Well, thats what I said. I can't do it WITHOUT FORCING LAUNCHBAR TO QUIT.
The implemented speech action works pretty well but there is no way to change its language … or to use multiple languages.
Thanks anyways.

sven.luetkemeier
Posts: 8
Joined: Mon Jan 18, 2010 11:48 pm

Re: Speech

Post by sven.luetkemeier » Sun Feb 24, 2013 6:50 pm

I used Automator to set up workflows which read text in a selected voice. These can be launched via launchbar und cancelled via the little spinning wheel in the menu bar.

Image

Post Reply