• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Thirteen Scripters Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thirteen Scripters Scripting


  • Subject: Re: Thirteen Scripters Scripting
  • From: Ed Stockly <email@hidden>
  • Date: Wed, 24 Dec 2008 19:19:41 -0800


Mark>>As long as we're posting improvements to David's nice holiday script (Thanks, David!), the text-to-speech stuff is smart enough to deal with numerals, so since Applescript knows how to count, you don't need to include the numbers in the lists:

So how does that change improve the script? It doesn't run faster or sound better. How about this:


-------------
say "Merry Christmas everyone" using "Bahh"
set slower to "[[rate 160]]"
set faster to "[[rate 210]]"
set special to "[[emph +]]"
set theCounters to {"First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth", "Tenth", "Eleventh", "Twelfth"}
set theCounted to {"uh " & special & " partridge, in uh pear, " & special & " treee,,", "two turtle doves, and,", "three French hens", "four calling birds", special & " five, " & slower & special & " golden,, " & special & " rings, , " & faster, "six geese uh-laying", "seven swans uh-swimming", "eight maids uh-milking", "nine ladies- dancing", "ten lords uh-leaping", "eleven pipers-piping", "twelve drummers-drumming"}
set theseThings to {}
set countedSoFar to {}
repeat with n from 1 to 12
set thisDaysStuff to item n of theCounted
set thisThing to slower & "On the " & item n of theCounters & " Day of Christmas, my true love sent to me, " & thisDaysStuff & "," & countedSoFar as text
set AppleScript's text item delimiters to {" "}
set thisDaysStuff to every text of thisDaysStuff
set AppleScript's text item delimiters to {"-"}
set countedSoFar to thisDaysStuff & countedSoFar
set end of theseThings to thisThing
end repeat
set AppleScript's text item delimiters to {" "}
set theseThings to (theseThings as text)
say theseThings using "Trinoids" -- tone deaf carolers
-------------



Thanks for the neat little script David!

ES

These are the best of the voices...

--say theseThings using "Alex" -- Probably the most conversational voice
--say theseThings using "Fred" -- Stephen Hawkings?
--say theseThings using "Junior" -- Stephen Hawkings younger brother
--say theseThings using "Victoria" -- a useful female voice
--say theseThings using "Bruce" -- a useful male voice

And below are the rest of the voices,
-- say theseThings using "Agnes" -- a fairly decent, if clipped female voice
-- say theseThings using "Albert" -- a scratchy male voice
-- say theseThings using "Bad News" -- a singing funereal voice
-- say theseThings using "Bahh" -- a scratchy, hard to understand voice
-- say theseThings using "Bells" -- singing, ringing bells
--say theseThings using "Boing" -- a spring-sounding voice
--say theseThings using "Bruce" -- a fairly useful male voice
--say theseThings using "Bubbles" -- more the sound of bubbles than a voice
--say theseThings using "Cellos" -- another singing voice that is fairly understandable
--say theseThings using "Deranged" -- wacky and strange voice
--say theseThings using "Fred" -- Steven Hawkings?
--say theseThings using "Good News" -- a light-hearted singing voice
--say theseThings using "Hysterical" -- laughing voice
--say theseThings using "Junior" -- Steven Hawkings younger brother
--say theseThings using "Kathy" -- a useful female voice
--say theseThings using "Pipe Organ" -- singing organ voice
--say theseThings using "Princess" -- young girl voice
--say theseThings using "Ralph" -- deep, male voice
--say theseThings using "Trinoids" -- tone deaf carolers
--say theseThings using "Victoria" -- a useful female voice
--say theseThings using "Whisper" -- eerie whispering voice
--say theseThings using "Zarvox" -- another alien voice



_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Thirteen Scripters Scripting
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Thirteen Scripters Scripting (From: David Marshall <email@hidden>)
 >Re: Thirteen Scripters Scripting (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Thirteen Scripters Scripting
  • Next by Date: Re: Thirteen Scripters Scripting
  • Previous by thread: Re: Thirteen Scripters Scripting
  • Next by thread: Re: Thirteen Scripters Scripting
  • Index(es):
    • Date
    • Thread