anotherSteve
Posts: 1
Joined: Wed Dec 06, 2017 12:31 pm

integrate speech recognition with tkinter?

Wed Dec 06, 2017 1:11 pm

I have a tkinter program that has up and down buttons that move a circle on a canvas. I would like the circle to respond to voice activation for up/ down left / right. Made this on a Windows PC and moved to the Pi and it runs in Thonny Python IDE.

I have made a basic Python program that starts with variable 100 and increments and decrements in response to up and down voice commands. This runs in the SysDev Terminal window.
When I try to run my tkinter program in Thonny it won't import the aiy audio, cloudspeech or voicehat, says Import error: No module named 'google'and refers to the lines in aiy/_apis/_speech.py which start import google.*. Clearly these worked ok in my text-only program..

I am trying to help a student make a voice activated game for an autistic boy. I think it would be possible to do as a text based grid with | _ | etc but would be infinitely better in a GUI environment. Any advice very gratefully received.

Return to “AIY Projects”