Tagged: Voice Recognizer Push Button
September 21, 2018 at 10:00 AM #97332
I want to use a push button connected to 1sheel hardware, instead of tab to speak in Voice Recognizer. anyone can help me with that?
also is it possible to make the application read my speech each automatically after each 2-3 second?September 23, 2018 at 3:22 AM #97567AmrKeymaster
This is possible to start the speak with a physical push button. So easy, just make an if condition in the void loop() section and check for the button. If pressed, then go for this code:
And for automating the speak operation each certain amount of time, you can use millis() function as a timer and keep reading its output. its output is >= 2 or 2 seconds (for exmple), then run the VoiceRecognition.start(); code line.
You can give it a try and tell me if it worked out with you 🙂September 23, 2018 at 6:34 PM #97641
i simple used VoiceRecognition.start(); and it always running Thx for the help.
but there is a new problem in the app. the app constantly resetting after not receiving any voice command and shows: speechRecognizer.Erroe_No_Match in the application.
is there a way to remove the notification sound and those error msg while running?
becuz i want my app to be running 24hrs while receiving voice commands anytime. and when i dont send a command it doesnt show error or notification noiseSeptember 24, 2018 at 6:28 PM #97763AmrKeymaster
I think this happens because you are forcing the voice recognition start command to run continuously and at every time, it checks if it really received a human voice command, if not it shows that error msg which means it couldn’t find any human voice command that matches the pre-saved voice commands it has.
If that was the case with you then don’t call the VoiceRecognition.start(); repeatedly each certain time and just call it when you need it, like when a button is pressed or some sort of sensor get a certain value … etc.
Have I made it clear to you?October 8, 2018 at 7:39 AM #99823
its clear thx
You must be logged in to reply to this topic.