Ok, after reworking it a dozen times I cam up with a weird but understandable 
solution. I had to surround the variable with quote to force revSpeak to see it 
as a quoted line of text. Since the tNum variable only has one word in it 
revSpeak seems to handle it just fine but because the tTTS has commas in it 
somehow revSpeak is confused by the variable and must see it as something other 
than a piece of text. Now it works:

on mouseUp
    put "THE TOP ROW. ESCAPE and Function keys F1, F2, F3, F4, F5." into tTTS
    put "6" into tNum
    send "TASpeak" && "Expanding" && quote & tTTS & quote && tNum && "Tasks!" 
to me in 1 millisecond

end mouseUp

on TASpeak pTextToSpeak
    --revStopSpeech
    wait until revIsSpeaking() is false --with messages
    revSpeak pTextToSpeak
end TASpeak


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Mar 4, 2013, at 4:44 PM, BNig <niggem...@uni-wh.de> wrote:

> Hi Thomas,
> 
> looks like a bug in revSpeak to me.
> 
> put "THE TOP ROW ESCAPE and Function keys F1, F2, F3, F4, F5." into tTTS
> 
> replace "," with ";" in tTTs
> 
> works and seems to have the same effect on pronounciation as a comma.
> 
> Kind regards
> Bernd
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Speech-and-commas-tp4661831p4661835.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to