• 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
getting a list of voices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting a list of voices


  • Subject: getting a list of voices
  • From: Hamish Graham <email@hidden>
  • Date: Fri, 9 Jul 2004 21:03:48 +0100

I currently get a list of available voices by
---------------------
set voicesFolder to path to voices
tell application "Finder"
set theVoices to the name of every folder of voicesFolder whose name extension is "SpeechVoice"
end tell

set voiceNames to {}

repeat with voice in theVoices
set voiceNames to voiceNames & my stripExtension(voice, ".SpeechVoice")
end repeat
---------------------

however there are a few problems, "Bad News" comes back as "BadNews", "Pipe Organ" appears as "Organ" so I have additional code to make these work. "Good News" does the same thing but also more importantly it simply doesn't work, try

say "Hello" using "Good News"

I get a "Parameter error" when I run that, the "Good News" voice *IS* in the voices folder but doesn't appear in any apps that use voices like System Prefs.

So is there a better way to get a list of voices, I'm running 10.3.4.

Thanks
Hamish
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: getting a list of voices
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: Lack of Applescript cgi support in Panther
  • Next by Date: Installing osax
  • Previous by thread: Re: Lack of Applescript cgi support in Panther
  • Next by thread: Re: getting a list of voices
  • Index(es):
    • Date
    • Thread