An intelligent Voice Assistant built with Python, integrating Google Speech-to-Text for recognition, Google Gemini API for natural language processing, and gTTS for voice synthesis.
🎙️ Voice Intelligence Assistant (Gemini + Python) 🤖 This project is a core milestone of my technical journey in the BootyCamp, focusing on cutting-edge Automation and Artificial Intelligence. I developed a robust virtual assistant capable of capturing voice commands, processing complex information through LLMs, and responding audibly with high-performance optimization.
🚀 Technologies & Core Stack Language: Python 3.14 (Bleeding edge version) LLM Engine: Google Gemini API (High-performance alternative to GPT-4) Speech-to-Text: SpeechRecognition + Google Speech API Audio Engineering: sounddevice & scipy (Robust signal handling) Text-to-Speech: pyttsx3 (Native offline engine for instant response)
🛠️ Key Features & Technical Solutions ⚡ Offline Native TTS: Optimized for speed. By using pyttsx3, the assistant provides instant audio responses, eliminating the latency of cloud-based synthesis.
⏩ Playback Speed Control: Automated 1.5x/1.75x speed adjustment (Variable WPM) for more natural and efficient information consumption.
🛡️ Audio Signal Engineering: Custom implementation using sounddevice to bypass common Windows driver conflicts (PyAudio), ensuring stability in modern Python environments.
🔄 Real-time Feedback Loop: A seamless pipeline integrating:
Microphone Capture → Digital Signal Processing → LLM Inference → Speech Synthesis.
🧹 Markdown Sanitization: Advanced text cleaning to ensure the voice engine ignores technical characters (asterisks, hashtags) for a professional listening experience.
🎯 Future Vision: LegalOps Integration As a Law graduate transitioning into Data Science, I am tailoring this technology for Legal Operations: Voice-Activated Procedural Queries: Real-time, hands-free status updates on legal cases. Legal Brief Automation: Using AI to summarize massive legal documents into audio briefs for quick, on-the-go review. Status: Developed as part of a strategic career transition into Data Science and LegalOps. 🚀⚖️
📂 How to run Clone the repository. Install dependencies:
Bash pip install google-genai sounddevice scipy SpeechRecognition pyttsx3 Add your Gemini API Key in main.py.
Run python main.py and start talking!