Text-to-Speech Loop Behaves Oddly
Iden Rosenthal
iden at idenrosenthal.com
Sun Apr 9 15:48:08 EDT 2006
The following is the script of my button. The idea is to read some
text from a field and then say it back sentence by sentence. When I
put the debugger on and step through the script it reads it properly.
But when I don't have a breakpoint in the script it just reads the
last sentence in the field.
on mouseUp
put fld "maintext" into theText
set the itemDelimiter to "."
repeat with k = 1 to the number of items in theText
put item k of theText into theSentence
revspeak theSentence
end repeat
set the itemDelimiter to ","
end mouseUp
More information about the use-livecode
mailing list