• 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: Getting list of installed TTS voices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting list of installed TTS voices
      • From: Jon Pugh <email@hidden>
References: 
 >Getting list of installed TTS voices (From: Laura Burns <email@hidden>)

  • Prev by Date: Re: Getting list of installed TTS voices
  • Next by Date: Re: Getting list of installed TTS voices
  • Previous by thread: Re: Getting list of installed TTS voices
  • Next by thread: Re: Getting list of installed TTS voices
  • Index(es):
    • Date
    • Thread