AI Voice Assistant
For this contest I made an AI where if you press a button on a screen, you can get an answer within seconds!
Downloads
Supplies
Amazon.com: LoveRPi MicroUSB to USB 4 Port Black OTG Hub for Raspberry Pi Zero : Electronics
Raspberry Pi Zero 2 W (You can use any raspberry pi, but i used this one because it was one of the cheapest) along with GPIO pins to solder to it
A 3D printer that you can print CAD files on
A microphone
Get a Raspberry Pi
The computer for this will be a Raspberry Pi. You can use any from the raspberry pi family (except for the Raspberry Pi Zero because it has no wif connection), but if your using one without a GPIO port, you'll have to solder it yourself.
Write the Code
For me this was fairly simple. The code I wrote was simple and got the job done. Essentially it recorded audio, then converted that to text, which goes through the chatGPT API, which then is converted back to speech, and then expelled to the reader. The code can be found here.
3D Print the Box
I designed the box in Fusion 360 in 3 main parts: The main box, the side plate, and the top plate. I designed it like this because I wanted space to put the electronics, then put everything else
Set Up the Pi
For this step, all you have to do is burn the software onto the pi and run the program (you can transfer it onto the pi via usb or scp transfer)
Get All the Hardware Together
For this step I just connected all the electronics together
Running the Program
The way I ran the program was by connecting my computer to the Raspberry Pi via ssh, cding into the directory, and running the interface.py file. After that, you should just need to press the button and enjoy!