I have Pidog v2 w pi5 4g.
I have completed calibration OK.
All 13 “fun projects” work great. For “see, hear, respond” steps 14 thru 19 work great.
Step 20 is my problem, When i run the script"sudo python3 20_voice_active_dog_gpt.py" Pidog says "hi there"then its listening for hey buddy.
When i say “hay buddy” LED go pink, when i ask Anything the LEds go briefly yellow and then NOTHING - program goes back to “listening” mode, I can again say hay buddy and it will wake, but any voice input resets to “listen mode”
I have updated only the 20_voice file with the API and Gemini info. Its the same info. as in file "sudo python3 18.online_llm_test.py. where it is used in step 18 and that worked great.
I have reloaded the OS and Pidog stuff 3 times with same results.
A screen shot if it helps.
My robot works 100%, microphone, speaker everything works OK until I get to step 20.
The wake up word works great, no problem
The robot wakes up to wake word, accepts input (leds go briefly to yellow), then nothing- robot resets to listening. The wake word will wake up robot then it goes right back to listening. all other function s work. I can repeat this wake reset cycle.
I have reloaded the OS and pidog 3 times with same results.
IMHO you probably cannot. If that experiment worked, then you are likely lacking performance, possibly lack of RAM, but my best guess would be your Internet upload speed or stability is blocking the camera upload thread. The local vosk stuff will still work fine.
I’ve neither run nor looked at the code myself, I just took a best guess from your summary, which I could be totally wrong, and it may be something entirely different. More investigation would really be needed by those with more skill than I. E.g Try somewhere with faster Internet, offload some work to an external computer etc
Usually the llm software reports a lack of memory anyway, which is why I don’t think yours is a memory problem, but I could be wrong!
You could try increasing swap and also use zram tools as a trial to see if more “RAM” would help.? Not as fast as real memory but may be functional. You could also try an ethernet cable to see if that helps as a trial.
Good luck!
If you get time: Please post feed back here if it works. It will help others with a similar problem.
I’m jealous I have 5M down and 0.5M up, of course, these things don’t work for me very well at all, but should be more than enough for you for this project. So its not that then
Gemini appears to have stricter requirements for image formats. It only allows JPEG and does not allow JPG (even though they are technically the same format). The solution is to modify the file extension of the image from .jpg to .jpeg.
To fix the issue, run the following command to update the dependency to version 1.0.1: