Getting AppleScript to "speak"

this doesnt work

tell app "finder"
say "hi" using "Fred"
end tell

or this

say "hi" using "Fred"

i tried it with and without variables
nothing works

It works for me and you definitely don’t need the Finder for this. There’s a note in the dictionary in reference to using a script specified voice. It says: “Ignored if Speech Recognition is on.”

Do you have speech recognition turned on?

– Rob

thanks i always have speach recognition on so that was teh problem.
how would you make an applescript to turn off speach recognition???

This works for me in OS X 10.2.8.

Disable:

tell application "SpeakableItems" to quit

Enable:

tell application "SpeakableItems" to launch

– Rob