Re: Changing voice in VoiceOver
Re: Changing voice in VoiceOver
- Subject: Re: Changing voice in VoiceOver
- From: André Renault <email@hidden>
- Date: Sun, 14 Nov 2010 17:34:39 -0500
I tried this and it doesn't work, I don't think. Can you give me advice?property fred : "com.apple.speech.synthesis.voice.Fred" property alex : "com.apple.speech.synthesis.voice.Alex"
property cvoice : false -- false is Fred, true is Alex, this is just making it easy
on run if (cvoice) then setVoice(alex) else setVoice(fred) end if end run
on setVoice(v) do shell script "defaults write com.apple.VoiceOver3/default.plist SCRCategories_SCRCategorySystemWide_SCRSpeechComponentSettings_SCRVoiceIdentifier " & v set cvoice to not cvoice end setVoice On 2010-11-14, at 5:19 PM, Philip Ershler wrote: On Nov 14, 2010, at 3:03 PM, André Renault wrote: My friend is looking to change the voice used with a simple keystroke. We got the keystroke part down, but not changing the voice. He's got two voices (for this example we'll call them Alex and Luciano). With Shift-Command-1 he'd like Alex and Shift-Command-2 he'd like Luciano.
Can someone provide a pointer for this? I've looked through the VoiceOver dictionary and didn't see anything for this - is this some 'defaults write' command?
In ~/Library/Preferences/com.apple.VoiceOver3/default.pist there is an entry for SCRCategories_SCRCategorySystemWide_SCRSpeechComponentSettings_SCRVoiceIdentifier which is a string. On my machine it is set to com.apple.speech.synthesis.voice.Fred I assume that this could be used with defaults write to change the voice. HTH, Phil
|
_______________________________________________
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