Re: vo and osascript: help with output command

2012-09-18 Thread Alex Hall
I know you can't access vo preferences. However, open up Script Editor, go to file > open dictionary, and select vo's dictionary. In there is the "output" commnd in which I am very interested. I differs from the "say" script command in that it will use the vo configuration to speak, not any para

Re: vo and osascript: help with output command

2012-09-18 Thread Esther
Hi Alex, This is a late reply, but I'll just add to what Chris described. You cannot access any of the default VO settings when you use the "say" command. Also, although you can use all of the embedded speech commands (described in the link to the Developer's Document that Chris gave you) as par

Re: vo and osascript: help with output command

2012-09-13 Thread Chris Blouch
Ahh, I guess I missed the point that you wanted to use their default VO settings. Not sure there is a way to do that unless you pull their preferences and use the same ones for your speech. Not that there is also a set of commands to give in-text directives so you can do say "[[pbas 50;rate 50

Re: vo and osascript: help with output command

2012-09-13 Thread Alex Hall
Yes you could, but what if the user's voice is not what I set? I don't want this for just me, it has to work for anyone who uses the package. Interfacing directly with vo is the only way to do that. On Sep 12, 2012, at 5:31 PM, Chris Blouch wrote: > I guess since I don't know Applescript I keep

Re: vo and osascript: help with output command

2012-09-12 Thread Chris Blouch
I guess since I don't know Applescript I keep going to the shell. You can set the rate and voice for the say command using various flags: say -v Bruce "help" -r 400 So wouldn't you be able to do something like os.system("say -v Bruce 'help' -r 400") CB On 9/12/12 4:09 PM, Alex Hall wrote: Y

Re: vo and osascript: help with output command

2012-09-12 Thread Alex Hall
Yes, like this: import os os.system("""osascript 'say "hello"'""") The problem is that say does not honor vo settings. For instance, vo uses Serena on my system, but my default voice is Alex, so I know the difference (particularly helpful in chess). I want to use vo itself so that all settings a

Re: vo and osascript: help with output command

2012-09-12 Thread Chris Blouch
Can you use Python to execute shell scripts? Then you could invoke say "sometext" to get your speech output from Python. CB On 9/11/12 6:17 PM, Alex Hall wrote: Hi all, I'd like to use osascript to tell vo to output text, which would be part of a python module. Long story short, can someone p

vo and osascript: help with output command

2012-09-11 Thread Alex Hall
Hi all, I'd like to use osascript to tell vo to output text, which would be part of a python module. Long story short, can someone provide a quick example of the exact syntax? I thought it might be: osascript tell voiceover to output "hello world" but I'm guessing at punctuation and exact wording