zchan
Posts: 6
Joined: Fri Mar 09, 2018 6:10 am

Troubleshooting AIY Voice with XboxDRV

Mon Mar 19, 2018 3:27 pm

Hello, I am attempting to use the google voice AIY kit with xbox drivers from here https://tutorials-raspberrypi.com/raspb ... -wireless/ to control motors, right now only a servo motor.

I got the voice control to work with the servo, and tried adding xbox to the same script. However, the xbox needs sudo permissions to run, so I have to use "sudo python /file/". Then the xbox import works, but it says it cannot find the AIY modules (if audio is first it says it cannot find audio, if cloudspeech is first in code it says it cannot find cloudspeech, etc). If I run the scrip without sudo it says xbox controller not detected and I have to run in sudo. Using the sudo xboxdrv commands shown in the tutorial to track button presses in the terminal and using the controller as a mouse on the desktop works fine, so the controller is obviously working. I think running as sudo python changes the directory, so I tried copying the cloudspeech.py and etc files to root, still no go.

zchan
Posts: 6
Joined: Fri Mar 09, 2018 6:10 am

Re: Troubleshooting AIY Voice with XboxDRV

Thu Mar 22, 2018 4:47 pm

I used sudo su to run sudo shell and then ran the command and it works 50% of the time. When it doesn't work the xbox needs to be released / renewed / what have you and then run the program again.

Return to “AIY Projects”