Everything else with PiDog works fine, except the voice communication ChatGPT program. The keyboard input program works great, the PiDog responds as it should. I have ran ‘rec op.wav’ and ‘sudo play op.wav’ several times. The USB microphone is working correctly but for some reason the program gets stuck at “Listening…” and will not respond to any speech.
Please run the following command to test if the recording function of pidog is working properly:
Record:
rec -c 1 -r 44100 test.wav
Play
sudo play test.wav
Hello, I have the same issue, ran the above test, no sound whatsoever. Please help.
Running on Raspberry Pi 4 4GB using GPT4o Mini.
Warning message after executing the sudo play test.wav command:
“play WARN alsa: can’t encode 0-bit Unknown or not applicable”
It is recommended that you reinstall the i2samp.sh script:
cd ~/pidog
sudo bash i2samp.sh
Go ahead and run the GPT example again and run it with sudo to see how it works.
I have same issue. Pidog gets stuck in Listening in chat-gpt. Microphone Record and Play test works fine. Keyboard control with chat-gpt works fine. Only voice control gets stuck in Listening. I have been working on this issue by trying everything which I can think, but still same stuck. Please help me here.
Reinstalled i2samp.sh number of times, no luck.
In my case, microphone record/play test works fine. But Pidog gets stuck in listening in chat-gtp in voice command mode. Keyboard control mode works fine.
We have fixed the issue.
You’ll need to re-update all the codebase before you go and re-run the chat-gpt example.
cd ~/robot-hat
git pull
sudo python3 setup.py install
cd ~/vilib
git pull
sudo python3 install.py
cd ~/pidog
git pull
sudo python3 setup.py install
cd ~/pidog
sudo bash i2samp.sh
After updating the code, reboot your system and go run the example again to see if it works.
Updated all the code base and it still gives the same result. It gets stuck at “Listening…”
The sound test works fine it records and plays sound perfectly. Something is wrong with the gpt coding that lets him hear
Same here. Same as tjmh3-san.
I updated all the code and it still stuck in “listening” in Chat-GPT.
Microphone sound test works fine. Keyboard mode in Chat-GPT works fine.
My config is Raspberry-Pi-4 4GB and OS 64bits Bookworm. Is this config related?
Never mind it is working properly now. When updating the PiDog coding I noticed it did not update the gpt example file because I had changed the voice. Had to completely delete the file gpt_example.py and update again then run the i2samp.sh twice. everything is working now!!!
I deleted gpt_dog.py file and re-installed the pidog-code again. Now, PiDog can listen in Chat-GPT successfully. Thank you very much for your support.
Error message from i2samp.sh installation, looks like it couldn’t detect the mic. Tried with the supplied mic and a known working mic:
check robothat 5 …
find: ‘/proc/device-tree/hat’: No such file or directory
hat_dir:
No robothat 5 found
robothat_spk_en: 20
is_with_mic: false
config soundcard without mic …
Error message during installation of i2samp.sh?
It is recommended to provide a screenshot of the complete error message to us.
We recommend that you try installing i2samp.sh twice, to see the results.
Erased SD card, reinstalled all modules, including above fixes for GPT.
Attached error screenshot after executing the sudo ~/my_venv/bin/python3 gpt_dog.py --keyboard command.
This error should be caused by your i2c service is not enabled.
It is recommended that you execute the command sudo raspi-config, go to the settings page to enable the i2c service, and then go to run the example.
does anyone know of the dog is customizable? can i have the Raspberry pi listen to tweets online and control my dog from commands it gets on-line. pls help anyone
I got it working with chatgpt now, thanks!
I had to reinstall most modules 2-3 times in order for it to work. My speaker also died, I contacted service@sunfounder.com, the replacement is on its way.
I noticed that with chatgpt, the wag_tail function is not working but it does work outside of chatgpt, any idea why?
How come it doesn’t work. Is there any error reported when running it.
Please describe the problem in detail. Or provide pictures or videos to us, so that we can help you analyze the problem.