On 15/11/2010, at 9:34 AM, André Renault wrote:
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:
G'day
Try something like this.....
global TheSpeechRate
global theVoice
property cvoice : false -- false is Fred, true is Alex, this is just making it easy
on run
set TheSpeechRate to 160
if cvoice then
my setVoice("alex")
else
my setVoice("fred")
end if
end run
on setVoice(v)
say "[[rate " & TheSpeechRate & "]]warning, there are only 12 gigabytes left on server. " using v
--set cvoice to not cvoice
end setVoice
Regards
Santa
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: