When I first tried OpenAI's ChatGPT, I immediately thought it would be much better if I could simply talk to it and it would talk back - like a smarter version of an Amazon Alexa. So I decided to build one.
DaVinci - The ChatGPT AI virtual assistant is a voice-controlled and voice-response assistant that uses OpenAI’s artificial intelligence language model to assist with a wide range of tasks, such as answering questions, providing information, giving suggestions, telling jokes, writing stories and much more. In addition to providing responses verbally, DaVinci also provide written responses if your device is connected to a display.
Davinci - The ChatGPT AI virtual assistant is a python program that utilizes Picovoice Porcupine (and (PyAudio) to detect a wake word; Picovoice Cobra voice activity detection to determine when the user begins and finishes speaking their query; Picovoice Leopard to convert the spoken query to text; OpenAI ChatGPT as the artificial intelligence that responds to the query; Amazon Polly text to speech to convert the response into a natural-sounding human voice; and Pygame to play the audio.
DaVinci uses the most current ChatGPT API that was released on March 1, 2023. DaVinci will be updated to run on GPT4 as soon as that API is widely available to developers.
The Python code and detailed instructions for building and running DaVinci - The ChatGPT Virtual Assistant are on my GitHub site linked below. The instructions below are for running the DaVinci on a Raspberry Pi 4, but it can also be run on other systems with minimal modifications. The process for obtaining access keys for ChatGPT, Picovoice solutions and Amazon Polly is the same regardless of the system used.
Comments