• 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: Changing voice in VoiceOver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing voice in VoiceOver


  • Subject: Re: Changing voice in VoiceOver
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 15 Nov 2010 12:08:13 +1100


On 15/11/2010, at 11:40 AM, André Renault wrote:

Thank you! This one worked:
property curVoice : false
on run
if curVoice then
set myVoice to "Alex"
else
set myVoice to "Fred"
end if
set curVoice to not curVoice
tell application "VoiceOver Utility"
activate
tell application "System Events" to tell process "VoiceOver Utility"
select row 3 of table 1 of scroll area 1 of window "VoiceOver Utility"
select radio button "Voices" of tab group 1 of group 1 of window "VoiceOver Utility"
click pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click menu item myVoice of menu 1 of pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click button 1 of window "VoiceOver Utility"
end tell
end tell
end run
On 2010-11-14, at 7:25 PM, Brian Christmas wrote:

G'day again

I was a bit slack with my programming. This version is marginally faster in that it refers to the window only once, and saved as an app 'remembers' a list of names and cycles through them. It also pronounces the set name (remove the line if not needed.)

You also only need to save it in the Dock and click on it once to cycle through the voices.

It also works between reboots.

Regards

Santa


property TheVoices : {"Alex", "Fred", "Bruce"}

on run
tell application "VoiceOver Utility"
activate
tell application "System Events" to tell process "VoiceOver Utility"
tell window "VoiceOver Utility"
select row 3 of table 1 of scroll area 1
select radio button "Voices" of tab group 1 of group 1
click pop up button 1 of tab group 1 of group 1
set TempVoice to get value of pop up button 1 of tab group 1 of group 1
set theFlag to false
repeat with x from 1 to (count of TheVoices) - 1
if item x of TheVoices = TempVoice then
set theVoice to item (x + 1) of TheVoices
set theFlag to true
exit repeat
end if
end repeat
if not theFlag then set theVoice to item 1 of TheVoices
click menu item theVoice of menu 1 of pop up button 1 of tab group 1 of group 1
click button 1
say theVoice
end tell
end tell
end tell
end run




And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo





 _______________________________________________
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

References: 
 >Changing voice in VoiceOver (From: André Renault <email@hidden>)
 >Re: Changing voice in VoiceOver (From: André Renault <email@hidden>)
 >Re: Changing voice in VoiceOver (From: Brian Christmas <email@hidden>)
 >Re: Changing voice in VoiceOver (From: André Renault <email@hidden>)
 >Re: Changing voice in VoiceOver (From: Brian Christmas <email@hidden>)
 >Re: Changing voice in VoiceOver (From: André Renault <email@hidden>)

  • Prev by Date: Re: Changing voice in VoiceOver
  • Next by Date: Re: Changing voice in VoiceOver
  • Previous by thread: Re: Changing voice in VoiceOver
  • Next by thread: Re: Changing voice in VoiceOver
  • Index(es):
    • Date
    • Thread