How ravidangi41/ru_zara_ai works
Ru Zara AI is a Python voice assistant whose primary flow is microphone speech recognition, command routing, and spoken responses. The command router provides weather, news, email, memory, and AI features; main.py also handles calculator, desktop actions, and a separate Gemini conversation path. The GUI starts that runtime, while memory persists to JSON. Evidence is limited to the README and supplied excerpts; the README names capabilities such as GUI and news, but unsampled modules and wiring are not assumed.
Main entry points: commands.py Command router · main.py Voice loop · memory.py Persistent memory · gui.py Desktop GUI
Components 19
User interface
- Desktop GUI
gui.py
Assistant runtime
- Voice loop
main.py - Speech recognition
listen.py - Speech output
speak.py - Command router
commands.py
Assistant features
- Calculator
calculator.py - Persistent memory
memory.py - Memory JSON
memory.json - Weather lookup
weather.py - News headlines
news.py - Email sender
email_sender.py - AI chat helper
ai_chat.py - Contact list
contacts.json
External services
- Google Gemini
- WeatherAPI
- NewsAPI
- Google speech service
- Gmail SMTP
Other components
- User
Connections 21
- User → Desktop GUI: starts
README.md - Desktop GUI → Voice loop: starts thread
gui.py - Voice loop → Speech recognition: captures speech
main.py - Speech recognition → Google speech service: recognizes audio
listen.py - Voice loop → Command router: routes command
main.py - Voice loop → Speech output: speaks response
main.py - Command router → Speech output: speaks response
commands.py - Voice loop → Calculator: calculates
main.py - Voice loop → Persistent memory: reads or saves
main.py - Command router → Persistent memory: reads or saves
commands.py - Persistent memory → Memory JSON: reads and writes
memory.py - Command router → Weather lookup: fetches weather
commands.py - Weather lookup → WeatherAPI: requests conditions
weather.py - Command router → News headlines: fetches headlines
commands.py - News headlines → NewsAPI: requests articles
news.py - Command router → Email sender: sends email
commands.py - Email sender → Gmail SMTP: sends message
email_sender.py - Command router → AI chat helper: asks question
commands.py - AI chat helper → Google Gemini: generates response
ai_chat.py - Voice loop → Google Gemini: generates response
main.py - Command router → Contact list: loads contacts
commands.py