Re: Getting list of installed TTS voices
Re: Getting list of installed TTS voices
- Subject: Re: Getting list of installed TTS voices
- From: Jon Pugh <email@hidden>
- Date: Mon, 7 Dec 2009 09:03:43 -0800
At 4:42 PM +0000 12/7/09, Laura Burns wrote:
>Is there any easy way, in an applescript, of getting a list of
>installed Text-to-speech voices . thanks in advance. ;-)
>From my script folder archive:
to test_voice()
set f to path to voices as Unicode text
set l to list folder f without invisibles
repeat with i in l
set t to read file (f & i & ":Contents:Resources:VoiceDescription")
set i's contents to t's text 18 thru (17 + (ASCII number t's character 17))
end repeat
set v to choose from list l with prompt "Please choose a voice:"
if v is not false then say "This is a sample of " & v using v
l
end test_voice
test_voice()
Jon
_______________________________________________
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