Speaking of voices

Jim Hurley jhurley at infostations.com
Sun Jun 29 18:26:00 EDT 2003


A minor quirk and a work-around.

I put the following handler in a field:

on mouseUP
    revsetspeechVoice "Bruce"
   if revIsSpeaking() then
     revstopSpeech
   else revspeak me
end mouseUP

The purpose was to allow the user to stop the speech with a second 
MouseUp. For reasons I do not understand it doesn't work. Instead of 
stopping, it starts over. (Apparently, revSetSpeechVoice causes 
revIsSpeaking() to return false, even though rev may be speaking.)

However, the following works just fine:

on mouseUP
   if revIsSpeaking() then
     revstopSpeech
   else
     revsetspeechVoice "Bruce"
     revspeak me
   end if
end mouseUP

"Though I speak with the tongues of Bruce and of angels, and have not 
proper precedence, I am become as sounding brass, or a tinkling 
cymbal."  1st Corinthians 13:1 (sort of)



More information about the use-livecode mailing list