November 2003
Beginner to intermediate
480 pages
15h 3m
English
say — text-to-speech
Performs text-to-speech, either speaking text or saving the synthesized speech as a sound file. Can also be used in conjunction with speech recognition to determine what text appears below the microphone window.
tell application "SpeechRecognitionServer"
set s to listen for {"yes", "no"} with prompt "Would you like me to beep?" ¬
giving up after 10
end tell
if s is "yes" then
say "Okay, I will beep now." displaying "Okay."
beep
else
say "Okay, then I won't." displaying "Okay."
end ifRead now
Unlock full access