Create a ChatGPT voice bot on a Raspberry Pi
Introduction
Initial setup
Configure and test audio
Create the Python application
Run and test the bot
Next Steps
Create a ChatGPT voice bot on a Raspberry Pi
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
After recording by running
arecord -d 5 test.wav, a file named test.wav should appear in your current directory. Its size should be non-zero.Say “computer”, pause for about a second, then ask your question. The terminal displays output indicating it’s waiting for the keyword before it detects the wake word.
Run
cd $HOME/assistant followed by source env/bin/activate. Then run python main.py to start the assistant.Run
arecord -l to list recording devices and aplay -l to list playback devices. Use the card and device numbers in commands such as arecord -D plughw:3,0 -d 5 test.wav and aplay -D plughw:2,0 test.wav, replacing the values with your hardware’s numbers.Press Ctrl+C in the terminal where
python main.py is running. The process exits and the prompt returns.