Sound Servo (EZB) icon Sound Servo (EZB) Map EZ-B audio volume to servos; multi-servo mirroring, scalar range control, invert/min-max, waveform feedback to sync mouth motion. Try it →
Tutorial
Published — Updated

Randomizing Answers In Speech Recognition

Step 4 of 6
How it Works

This system works by taking a phrase from a text file. If I say:

Quote:

You look nice today
The computer, using the FileReadRandom() command, opens the complements.txt text file and reads a random line from that file. That file is full of complements, one on each line. Because the script sets a variable as what the computer read, you then use either the "Sayezb()" or "say()" commands to read that variable, which in turn responds to your statement with a complement.

The same process occurs if you greet the robot, but uses a different text file and a different variable.


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.