Speech and commas
I am having a problem with Speech 'again'. The following script will only speak the text in tTTS up until the first comma and then it stops. It does not finish tTTS or get to the tNum or the last word Tasks!But I have no idea why it would do this on mouseUp put THE TOP ROW. ESCAPE and Function keys F1, F2, F3, F4, F5. into tTTS put 6 into tNum send TASpeak Expanding tTTS tNum Tasks! to me in 1 millisecond end mouseUp on TASpeak pTextToSpeak --revStopSpeech wait until revIsSpeaking() is false --with messages revSpeak pTextToSpeak end TASpeak Any ideas??? Thanks Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.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
Re: Speech and commas
I can't figure out why, but it is the commas causing the issue, replacing them with stops allows the speech to complete the full sentence. Using exactly the same sentence in Text Edit allows the speech to complete with commas. Paul On 2013-03-04, at 12:48 PM, Thomas McGrath III wrote: I am having a problem with Speech 'again'. The following script will only speak the text in tTTS up until the first comma and then it stops. It does not finish tTTS or get to the tNum or the last word Tasks!But I have no idea why it would do this on mouseUp put THE TOP ROW. ESCAPE and Function keys F1, F2, F3, F4, F5. into tTTS put 6 into tNum send TASpeak Expanding tTTS tNum Tasks! to me in 1 millisecond end mouseUp on TASpeak pTextToSpeak --revStopSpeech wait until revIsSpeaking() is false --with messages revSpeak pTextToSpeak end TASpeak Any ideas??? Thanks Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.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
Re: Speech and commas
Hi Thomas, As a work around I would replace all comma's with some other non-pronounceable or invisible character like a space and see if that fixes your problem. Do that before you give the sentence to the speech part of the program. Good Luck, Rick On Mar 4, 2013, at 3:48 PM, Thomas McGrath III mcgra...@mac.com wrote: I am having a problem with Speech 'again'. The following script will only speak the text in tTTS up until the first comma and then it stops. It does not finish tTTS or get to the tNum or the last word Tasks!But I have no idea why it would do this on mouseUp put THE TOP ROW. ESCAPE and Function keys F1, F2, F3, F4, F5. into tTTS put 6 into tNum send TASpeak Expanding tTTS tNum Tasks! to me in 1 millisecond end mouseUp on TASpeak pTextToSpeak --revStopSpeech wait until revIsSpeaking() is false --with messages revSpeak pTextToSpeak end TASpeak Any ideas??? Thanks Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.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
Re: Speech and commas
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
Re: Speech and commas
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
Re: Speech and commas
On 04.03.2013 at 17:55 Uhr -0500 Thomas McGrath III apparently wrote: 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 This explains your problem. Without quote, TASpeak was seeing multiple paramaters (separated by commas) and pTextToSpeak contained only the text up to the first comma. If you had pTextToSpeak2, it would have the next section. Robert ___ 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