How 0llrayll0/luna-ml-chatter works
Luna is a Portuguese voice-controlled desktop assistant. Its main loop listens for commands, dispatches recognized commands to desktop actions or a conversation loop, and exits on a spoken request. The conversation loop translates Portuguese input to English, generates a response, translates it back, and speaks it. Other documented-in-code capabilities include screen OCR and launching desktop applications. The repository exposes only luna.py as runtime source; edges are limited to calls visible in that excerpt.
Main entry points: luna.py Conversation loop
Components 12
Voice control
- Main loop
luna.py - Voice input
luna.py - Command router
luna.py
Conversation
- Conversation loop
luna.py - Translation
luna.py - Text generator
luna.py - Speech output
luna.py
Desktop actions
- Desktop applications
- Screen capture
luna.py - Tesseract OCR
Other components
- User
- Google speech
Connections 15
- User → Main loop: speaks commands
luna.py - Main loop → Voice input: calls
luna.py - Voice input → Google speech: recognizes speech
luna.py - Main loop → Command router: dispatches command
luna.py - Command router → Conversation loop: starts conversation
luna.py - Conversation loop → Voice input: listens again
luna.py - Conversation loop → Translation: translates input
luna.py - Conversation loop → Text generator: generates response
luna.py - Conversation loop → Translation: translates response
luna.py - Conversation loop → Speech output: speaks response
luna.py - Command router → Speech output: speaks prompt
luna.py - Command router → Desktop applications: opens applications
luna.py - Command router → Screen capture: reads screen
luna.py - Screen capture → Tesseract OCR: extracts text
luna.py - Screen capture → Speech output: speaks extracted text
luna.py