
Dunning-Kruger
Canada
Asked
— Edited
Here is a little project I have been working on with fellow forum member Bob Houston.... It was originally written by another forum member Louis Vazquez.... who really did a good job on this... I have tweaked it a little to try and make it more adaptable from project to project.... It works like sound servo, but using text to drive the servo instead of sound....
I have Luis' permission to post so here it is...
I have posted it to the cloud as well...
Just a thought, I ran into an issue like this with the text-to-speech(audio) module I worked on back on the V3. I don't know how the script is handling the parsing but if it parses everything and then sends the data out to the servos you could have an issue there. When I was working on the text-to-speech(audio) module the board I was using had a limit on the number of characters you could send in each packet. My work around was to send each character singularly as I parsed. This way it can be processing the text as it is implementing it to the servos. Just a thought.
I updated the script in the Cloud and moved all Variables to the top of the file for easy tweaking.
The top of the file looks like this now.
@Luis.... Thanks man....
Cheers Richard
Here's a couple of ideas on how we can make this "Text to Speech" engine Command Control even better.
Is it possible to make it so that the command control doesn't have to be put in after every line of text? Perhaps,a way to put it once at the beginning of the script and then any text in that script would be "spoken".
Is there a way to get the sound to come out of the EZB rather than the computer? For example a "$SentEZB" command, kind of like "SayEZB".
Mouth servo is on D2
speech settings - medium rate of speaking
say($sent2) # or sayEZB(
Change this line from say to sayEZB and the sound will come out of the ezb.
In the new script
say($sent) would be changed to sayEZB($sent)
Man, this community is great! Thanks d.cochran, I knew it would be EZ to do ! One down one to go.
I posted this question awhile ago and didn't get a response. So I'll post it again just in case someone had a thought on it.
Is it possible to make it so that the command control doesn't have to be put in after every line of text? Perhaps, a way to put it once at the beginning of the script and then any text in that script would be "spoken".