Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Applescript help - Speed of voice recording?

So I am almost done with this script. The last thing I am trying to figure out is how to SAVE the recording to the SPEAKING RATE that I assigned.


Is this possible? I tried all variations and it is not working.


Thanks for your help.



set anSwer to the text returned of (display dialog "What text do you want to record?" default answer "") as text

set the_names to {"Fred", "Bruce", "Alex", "Albert", "Ralph", "Junior", "Vicky", "Agnes", "Kathy", "Princess", "Victoria"}


repeat with this_name in the_names

tell application "System Events"

try

say "Using" & this_name & "'s voice..., " & anSwer using this_name speaking rate 90

display dialog "Do you want to save this as an Audio File?" buttons {"Yes", "No"} default button 1

if the button returned of the result is "Yes" then

set fileName to this_name & ".aiff"

set video_path to ((path to desktop as text) & fileName)


sayanSwerusingthis_namesaving tovideo_path -- what do I put here to save with the speaking rate 90?

else

display dialog "Not good? Ok, moving onto the next voice."

end if

on error



display dialog "Didn't Work" giving up after 3

end try

end tell

end repeat

display dialog "You are done!"

MacBook Pro (13-inch Mid 2010), Mac OS X (10.7.3)

Posted on Apr 24, 2013 9:33 AM

Reply
Question marked as Best reply

Posted on Apr 24, 2013 10:02 AM

Just add the parameter (see the Standard Additions scripting dictionary for other terms):


sayanswerusingthis_namespeaking rate90saving tovideo_path

2 replies

Applescript help - Speed of voice recording?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.