{"id":26201644,"url":"https://github.com/xvc323/raspai","last_synced_at":"2026-05-06T17:35:26.392Z","repository":{"id":281939632,"uuid":"946941041","full_name":"xVc323/raspai","owner":"xVc323","description":"A voice assistant powered by Google’s Gemini AI, designed for Raspberry Pi. Features voice activation, passive listening with commentary, and GPIO controls.","archived":false,"fork":false,"pushed_at":"2025-03-11T23:27:39.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T00:25:47.905Z","etag":null,"topics":["gemini","home-assistant","home-automation","python","raspberry-pi","tts","voice-assistant","voice-recognition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xVc323.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T23:10:37.000Z","updated_at":"2025-03-11T23:32:39.000Z","dependencies_parsed_at":"2025-03-12T00:36:06.676Z","dependency_job_id":null,"html_url":"https://github.com/xVc323/raspai","commit_stats":null,"previous_names":["xvc323/raspai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xVc323%2Fraspai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xVc323%2Fraspai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xVc323%2Fraspai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xVc323%2Fraspai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xVc323","download_url":"https://codeload.github.com/xVc323/raspai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243148027,"owners_count":20243903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini","home-assistant","home-automation","python","raspberry-pi","tts","voice-assistant","voice-recognition"],"created_at":"2025-03-12T03:23:02.940Z","updated_at":"2026-05-06T17:35:26.344Z","avatar_url":"https://github.com/xVc323.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RaspAI - Voice Assistant for Raspberry Pi\n\n![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)\n![Python](https://img.shields.io/badge/python-3.7+-blue.svg)\n![Platform](https://img.shields.io/badge/platform-Raspberry%20Pi-red.svg)\n\nA powerful voice assistant powered by Google's Gemini AI, designed to run on a Raspberry Pi.\n\n## ✨ Latest Update: Integrated Voice Assistant\n\nWe've combined the main voice assistant and passive listener into a single integrated script that offers both features simultaneously. This is now the recommended way to use RaspAI.\n\n**Key Features:**\n- 🎙️ Voice assistant activated by \"Hey Raspberry\" wake word\n- 🔊 Optional passive listener that makes funny comments about what it hears\n- 🔘 Toggle the passive listener on/off with a hardware button or keyboard shortcut\n- 💡 LED indicator shows when passive listener is active\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Raspberry Pi 3B or better (only the 3B version has been tested)\n- USB microphone\n- Speaker (via 3.5mm jack or HDMI)\n- Google Gemini API key ([get one here](https://aistudio.google.com/app/apikey))\n\n### Installation\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/xvc323/raspai.git\n   cd raspai\n   ```\n\n2. Set up your `.env` file with your Google Gemini API key:\n   ```bash\n   cp .env.example .env\n   # Edit .env with your text editor and add your API key\n   ```\n\n3. Deploy to your Raspberry Pi:\n   ```bash\n   ./deploy.sh\n   ```\n\n4. Run the integrated assistant:\n   ```bash\n   python3 raspai_integrated.py\n   ```\n\nFor detailed instructions, see [INTEGRATED_README.md](INTEGRATED_README.md)\n\n## 📂 Project Files\n\n### Core Files\n- `raspai_integrated.py` - **[RECOMMENDED]** The main script with both voice assistant and passive listener features\n- `test_components.py` - Test your microphone, speaker, and other components\n- `deploy.sh` - Deploy files to your Raspberry Pi\n- `setup.sh` - Set up dependencies on your Raspberry Pi\n\n### Hardware Requirements\n- Raspberry Pi 3B or better\n- USB microphone\n- Speaker (via 3.5mm jack or HDMI)\n- Optional: Push button on GPIO pin 17\n- Optional: LED on GPIO pin 27\n\n## 📚 Documentation\n- [INTEGRATED_README.md](INTEGRATED_README.md) - Detailed guide for the integrated solution\n\n## 🧰 Legacy Scripts\n\nStandalone versions of the assistant and passive listener are still available:\n- `raspai.py` - Basic voice assistant\n- `raspai_advanced.py` - Advanced voice assistant\n- `passive_listener.py` - Standalone passive listener\n\nThese are provided for compatibility but are no longer actively developed.\n\n## 📷 GPIO Connection Diagram\n\n```\nRaspberry Pi GPIO    Button/LED Connection\n----------------|-------------------------\nGPIO 17 (Pin 11) --- Push Button --- GND\nGPIO 27 (Pin 13) --- 330Ω Resistor --- LED Anode --- LED Cathode --- GND\n```\n\n## 📋 Dependencies\n\n- google-generativeai - Google's Gemini AI API\n- SpeechRecognition - For speech recognition\n- PyAudio - For audio processing\n- pyttsx3 - For text-to-speech\n- python-dotenv - For environment variable management\n- RPi.GPIO - For GPIO control\n\n## 📝 License\n\nThis project is free to use for personal projects. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvc323%2Fraspai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxvc323%2Fraspai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvc323%2Fraspai/lists"}