Good day! I'm making an app for a school project. The app should recognize spoken numbers from 1 to 80 using a speech recognizer and send them to an Arduino. The app should continuously listen for speech, display the recognized number on the screen, and adjust a slider that is connected to the screen which presents the number.
However, I'm facing issues where the speech recognizer doesn't work very well, and I'm also struggling to create a function for this functionality. I use an extension to continuesly use the voice recogniser
This link may help getting the SpeechRecognizer working correctly for continuous dictation without using an extension . You might try the aia that is part of the tutorial.
Even after you get speech recognition working, you will have to consider questions like how to parse a sequence of words to assemble them into a number.
There are solutions on this board for the reverse problem, taking a number and expressing it in text.
You could use one of those solutions to populate a TinyDB NameSpace with text tags for the numbers ('thirty seven'), and numerical values (37) for those tags. Just count up from 1 to 80 and fill the TinyDB instance.
At run time, if you receive something new ('[four score](“Fourscore.” Merriam-Webster.com Dictionary, Merriam-Webster, FOURSCORE Definition & Meaning - Merriam-Webster. Accessed 14 Mar. 2025.)') and are okay with learning new numbers, add them to the TinyDB NameSpace.