Original implementation using LLaMA.cpp and Google's Gemma2 models, optimized for the Jetson Orin Nano platform.
This directory contains the original voice assistant implementation along with additional demonstration scripts showcasing different AI capabilities.
- Main voice assistant with RAG (Retrieval-Augmented Generation)
- Uses Whisper for speech-to-text
- FAISS for document search
- Gemma2 for response generation
- Piper TTS for text-to-speech
- Simulates a conversation between two AI agents
- Each agent has a different personality
- Demonstrates multi-agent communication
- Uses two instances of Gemma2 running simultaneously
- English to Japanese voice translation
- Real-time speech translation
- Uses Whisper for transcription
- Gemma2 for translation
- Coqui TTS for Japanese speech synthesis
- LLaMA.cpp server running with Gemma2 model
- Piper TTS installed (for voice assistant)
- Coqui TTS installed (for translation demo)
pip install -r requirements.txtVoice Assistant:
python assistant.pyMulti-Agent NPC System:
python npcservers.pyTranslation Assistant:
python translate.pyMake sure your LLaMA.cpp server is running on port 8080 with a Gemma2 model loaded.
Update the find_device() function in each script to match your audio input device.
Update the Piper TTS path in the scripts to match your installation:
piper_path = "/home/asier/piper/build/piper"- Python 3.8+
- LLaMA.cpp server
- Gemma2 model files
- Piper TTS (optional)
- Coqui TTS (for translation demo)
Tested and optimized for:
- Jetson Orin Nano (ARM64, Linux)
This implementation uses LLaMA.cpp instead of Ollama, providing:
- Direct model control
- Custom server configuration
- Legacy compatibility
- Research and development capabilities
This project is open source and available under the MIT License.