This custom Raspberry Pi voice assistant is built around ChatGPT

If there's one thing the Raspberry Pi is good for, it's a little bit of everything. Home automation and voice assistant projects definitely aren't unheard of—you can find quite a few around online. But today we've got an impressive voice assistant project made from scratch to share that we think is really impressive. Maker and developer Suryatejadev has created a custom voice assistant using our favorite single board computer (SBC), the Raspberry Pi 5, along with a little bit of help from AI thanks to ChatGPT.

The concept is simple, but it's obvious that it took a fair bit of work to put together. The Raspberry Pi listens for audio using a microphone. This audio is then processed and parsed through ChatGPT so the command can be interpreted. Responses from ChatGPT can then be played back through the Raspberry Pi 5 with the help of a speaker.

The main board powering this particular setup is a Raspberry Pi 5, which comes with plenty of power for handling the various components of the project. However, you'll still need a fan to keep the unit cool as the Pi 5 is notorious for running warm. You can use any compatible microphone for audio input and any speaker you'd like for audio output.

The Raspberry Pi is programmed to listen for a keyword, in this case "corgi." When the keyword is detected, the Pi barks in response. Audio can also be detected using a phone using an application called "Easy Voice Recorder." The Pi can listen to audio through this app if both the phone and Pi are running "Syncthing." Audio is converted into text using OpenAI, which is then parsed to a ChatGPT API. Responses are converted into audio using an OpenAI model and then played through whatever speaker you're using.

TOPICS
Ash Hill
Contributing Writer

Ash Hill is a contributing writer for Tom's Hardware with a wealth of experience in the hobby electronics, 3D printing and PCs. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting while also finding the best coupons and deals on all tech.