airfoil and speech output

James Sentman james at sentman.com
Fri Oct 3 11:22:00 EDT 2014


I dont know why anything would be different in XTension, but you dont need to use XTension to generate speech, the Finder can do it and so can just a stand alone stay open applescript applet. Perhaps you could redirect from one of those?

You can always just do:

tell app "Finder" to say "your mother was a hamster"

if you wrap that into an attachemt script handler you can do a search on everywere you used say or speak and change it to the name if your new handler like:

on newSay( theText)
  ignoring application responses
    tell app "Finder" to say theText
  end ignoring
end newSay

I think it will hold out till the speech is finished without the ignoring applications block, but be careful with that, you might have multiple things being spoken at once, or it might be that the second call would hold till the first was finished I dont know ;)

if the finder doesn't work, or has the potential to generate other audio streams then you can try with an empty, more or less, applescript applet. I just tested this and it works too at least for speech, I dont have the audio app installed.

Create an applescript in the script editor, it has to do something or it wont compile it so I just did this:

tell app "XTension"
  write log "speech helper startup"
end tell

then do an export of it as an application with the stay open flag set. Run it and then you can actually tell it to do the speech from XTension, perhaps you can capture the audio stream from a script applet? So in XTension then you'd do something like:

ignoring application responses
  tell app "the name you called your script helper" to say theText
end ignoring

does any of that help?


On Oct 3, 2014, at 11:03 AM, Jeff Wooding <jeff at qualitytubandtile.com> wrote:

> Hey Tom 4.8.9 is what I'm running 4.48.5 is working for you with XTension as the source?
> 
> 

Thanks,
 	James


James Sentman                       http://sentman.com		http://MacHomeAutomation.com





More information about the XTensionList mailing list