getting a list of voices
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.