Ahh, I think we're on different platforms. I'm thinking of a shell script in terminal while I think you're doing it via an AppleScript. Both apparently have a "say" command. Since I don't know Applescript, all problems are solved by shell scripts for me :) That said, you can use AppleScript to run terminal commands. So something like:

set bob to "You have a new message." do shell "say -o ~/Desktop/outputaudio.aiff " & bob

Then you can use all the fancy terminal say commands:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/say.1.html

This Apple developer note covers most of the glue needed to connect AppleScript with shell scripts:

https://developer.apple.com/library/mac/technotes/tn2065/_index.html

CB

On 3/14/14 12:45 PM, Traci Duncan wrote:
Thank you,

I’m not actually inputing any text file; I’m writing something like this:
beep
delay 0.5
say “You have a new message.” Using “Will”

My goal is to have this be an audio file that I can use later.  On the last 
line would I type -o will.aiff

I’ve been reading documentation, but much to my annoyance, I’m still doing 
something wrong.

Thanks for the help,
Traci

On Mar 13, 2014, at 9:06 PM, Chris Blouch <[email protected]> wrote:

I'm no AppleScripter but the say command takes a parameter to say where to save 
the aiff audio output instead of playing it through the speakers. Normally you 
could do

say -f input_text_filename.txt -o output_audio.aiff

there are lots of other parameters to the say command which you can find by 
doing a

man say

in terminal.

CB

On 3/13/14 6:08 PM, Traci Duncan wrote:
Hi all,

I've done this in the past and I can't remember how.  It is driving me crazy 
and googling isn't getting me the correct solution.

If I'm creating a script with the say command, using a particular voice, what 
is the last line in the script to save that as an .aiff file?

One reason I'm doing this via Apple script instead of save to iTunes as a 
spoken track, is I want to use the beep command before the say command.

Fingers crossed, someone out there knows exactly what I need.  :)

Traci

--
¯\_(ツ)_/¯

--
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

--
¯\_(ツ)_/¯

--
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to