Jarvis is a voice assistant powered by Picovoice, Chat GPT, Google Speech to Text, and Text to Speech. It's designed to work on Linux-based systems with a connected microphone and speaker. Jarvis can understand voice commands, answer questions, and assist with various tasks.
To get started, you need to install some dependencies:
sudo apt-get install -y python3-pyaudio sox libcairo2 libcairo2-dev portaudio19-dev python3-dev libpcre3 libpcre3-dev ffmpeg python3-pip sqlite3 alsa-tools
Next, set up a virtual environment, activate it, and install the required Python packages:
pip install virtualenv
virtualenv ENV
source ENV/bin/activate
pip install -r requirements.txt
-
Obtain an API key from Picovoice at https://console.picovoice.ai/.
-
Export the API key as an environment variable:
export PICOVOICE_KEY=<your_picovoice_api_key>
-
Obtain an API key from the OpenAI GPT-3 service at https://platform.openai.com/account/api-keys.
-
Export the API key as an environment variable:
export API_KEY=<your_chat_gpt_api_key>
-
Sign up for a Google Cloud account and create a new project at https://cloud.google.com/.
-
Enable the Speech-to-Text and Text-to-Speech APIs for your project.
-
Create a service account and grant it the necessary roles to access the enabled APIs.
-
Download the JSON key file for the service account and save it as
google-secret.json
in the project directory. -
Export the path to the JSON key file as an environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=google-secret.json
Once you have completed the setup, you can run the Jarvis voice assistant:
python main.py
Jarvis will be ready to listen to your voice commands and assist you with various tasks.
This project is licensed under the MIT License - see the LICENSE file for details.