text highlighting during revSpeech

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
Robert S
Posts: 5
Joined: Wed Jul 24, 2013 11:00 am

text highlighting during revSpeech

Post by Robert S » Wed Jul 24, 2013 2:31 pm

Hi,
With the majority of text-to-speech programs it is very important to highlight the words as they are spoken. i.e. have a look at most E-Book readers.

I was wondering if this feature could be added to revSpeech? this is an invaluable feature in Education as pupils with reading difficulties need to know which word is being spoken and where they are in the document. lots and lots of applications for this in the field of additional support needs as well as simple EBook readers.

Regards,
Robert

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: text highlighting during revSpeech

Post by dunbarx » Wed Jul 24, 2013 3:14 pm

This has to be the crudest solution anyone has seen since 1987:

Code: Select all

on mouseUp
   repeat with y = 1 to the number of words in fld 1
      revspeak word y of fld 1
      select  word y of fld 1
      wait 30
      end repeat
end mouseUp
Can't wait to see how grown-ups do it

Craig Newman

Robert S
Posts: 5
Joined: Wed Jul 24, 2013 11:00 am

Re: text highlighting during revSpeech

Post by Robert S » Wed Jul 24, 2013 3:21 pm

yes, it isn't too great a solution. Still, does show text highlighting :-)

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: text highlighting during revSpeech

Post by shaosean » Thu Jul 25, 2013 4:51 am

I would use "wait until revIsSpeaking() is FALSE" before moving on instead of 30

Robert S
Posts: 5
Joined: Wed Jul 24, 2013 11:00 am

Re: text highlighting during revSpeech

Post by Robert S » Thu Jul 25, 2013 3:20 pm

Hi,
Unfortunately that doesn't work as the highlighting doesn't keep up with the individual words as they are spoke. The voice also shudders.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: text highlighting during revSpeech

Post by shaosean » Thu Jul 25, 2013 3:21 pm

well then, carry on ;-)

Post Reply