Asked
— Edited
Hello Everyone,
I'm writing a script that will allow JD to give a short & simple math quiz to 6th grade special education students (my wife is a special ed teacher).
A challenge I have run into, is with converting the spoken text into a numeric value. For example:
$response = WaitForSpeech(30, "4", "3")
Is not detecting when 4 or 3 is spoken, however when I use:
$response = WaitForSpeech(30, "Four", "Three")
The response is detected and the value is stored as a string, but I can't do any math with it. I would like to actually perform calculations based on numbers provided by the student.
$answer = $response + 3
Any thoughts on how I can approach this differently?
You can do something like this
LOL - Obviously. One of thoes Hommer Simpson moments :-) . Thanks @Richard
Though, I like where you were taking this. It would be nice if your setup would work.
@Technopro Thanks, I have a few goals for this 1st classroom appearance.
Dance to a song: Provide a mobile button + voice command that will trigger a sequence of frames and audio file.
Play peek-a-boo: Use the facial recognition to detect a student face, the game will consist of the student hiding his/her face then JD will say where did you go. When the student face appears, JD will say hey there you are.
Give a math quiz: I am coding in math problems that JD can give to students. JD will
Take a math quiz: I would like the students to give JD a math quiz, he will
Basic Controls: Walk Forward Walk Backward Move head Vertical & Horizontal
I will post the video when completed.