Jarvis Voice Assistant (openWakeWord + Gemini CLI)
This project uses openWakeWord to listen for the "Hey Jarvis" wake word and then uses SpeechRecognition to capture a command and send it to the gemini CLI.
Setup
-
Install PortAudio (macOS):
brew install portaudio -
Create and Activate Virtual Environment:
python3 -m venv venv source venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt -
Verify Gemini CLI: Ensure
geminiis installed and available in your PATH.
Usage
Run the script:
source venv/bin/activate
python jarvis.py
- Say "Hey Jarvis".
- You will hear a "tink" sound.
- Speak your command (e.g., "List the files in this directory" or "Check the weather").
- The script will transcribe your command and run
gemini "<your command>".
How it Works
- openWakeWord: Provides local, low-latency wake word detection.
- SpeechRecognition: Uses Google's Web Speech API for transcription.
- Gemini CLI: The brain that processes the commands and calls agent tools.
Description
Languages
Python
100%