How absolutejekaii/akira works
AKIRA is a voice-first Indonesian calendar and reminder assistant, with a desktop interface and a terminal mode. Its main workflow runs from wake-word or manual activation through recording, parallel speech recognition, language understanding, dialog and confirmation, calendar execution, and spoken response. Separate branches support alarms, reminders, ambient listening, and desktop controls. Relationships are based on the README and SOURCE INDEX references; where implementation details were not excerpted, documented workflow links are cited to the README rather than treated as inspected source.
Main entry points: app.py Assistant orchestrator · parser.py NLP facade · detector.py Wake-word detector · akira_app.py Desktop interface
Components 34
Desktop controls
- Desktop interface
akira_app.py - GUI runner
src/gui/runner.py - Keyboard shortcuts
src/gui/hotkeys.py - Input trigger queue
src/utils/trigger.py
Voice pipeline
- Wake-word detector
src/wakeword/detector.py - Ambient listener
src/audio/ambient_listener.py - Audio recorder
src/audio/recorder.py - STT orchestrator
src/stt/transcriber.py - STT ensemble
src/stt/ensemble.py - STT backends
src/stt/backends.py - Speech output
src/tts/speaker.py
Language understanding
- Text normalizer
src/nlp/text_normalizer.py - Intent classifier
src/nlp/intent_classifier.py - Date-time parser
src/nlp/date_time_parser.py - Entity extractor
src/nlp/slm_extractor.py - NLP facade
src/nlp/parser.py - LLM reasoner
src/nlp/groq_reasoner.py - Correction parser
src/nlp/correction.py
Dialog and calendar
- Assistant orchestrator
src/app.py - Dialog state machine
src/dialog/state_machine.py - Session context
src/dialog/context.py - Confirmation flow
src/dialog/confirmation.py - Calendar executor
src/calendar_service/executor.py - Calendar operations
src/calendar_service/crud.py - Calendar authentication
src/calendar_service/auth.py - Alarm and timer
src/dialog/alarm.py - Calendar reminders
src/dialog/reminder.py - Reminder lifecycle
src/dialog/self_destruct.py
Session services
- User settings
src/utils/user_settings.py - Session state
src/utils/session_state.py - Greeting
src/utils/greeting.py
Other components
- User
- Microphone
- Google Calendar API
Connections 47
- User → Microphone: speaks into
- Microphone → Wake-word detector: audio input
- Wake-word detector → Audio recorder: activates
- Wake-word detector → Ambient listener: enables listening
src/audio/ambient_listener.py - Ambient listener → Wake-word detector: uses detector
src/audio/ambient_listener.py - Audio recorder → STT orchestrator: recorded audio
- STT orchestrator → STT ensemble: transcribes with
src/stt/transcriber.py - STT ensemble → STT backends: runs engines
src/stt/ensemble.py - STT backends → User: audio transcription request
- Assistant orchestrator → Wake-word detector: monitors activation
src/app.py - Assistant orchestrator → Audio recorder: records speech
src/app.py - Assistant orchestrator → STT orchestrator: requests transcription
src/app.py - Assistant orchestrator → NLP facade: parses command
src/app.py - NLP facade → Text normalizer: normalizes text
src/nlp/parser.py - NLP facade → Intent classifier: classifies intent
src/nlp/parser.py - NLP facade → Date-time parser: parses dates
src/nlp/parser.py - NLP facade → Entity extractor: extracts entities
src/nlp/parser.py - NLP facade → Session context: uses context
src/nlp/parser.py - Intent classifier → LLM reasoner: reasons when needed
src/nlp/intent_classifier.py - Intent classifier → Entity extractor: uses extraction
src/nlp/intent_classifier.py - Assistant orchestrator → LLM reasoner: reconciles speech
src/app.py - Assistant orchestrator → Dialog state machine: runs dialog
src/app.py - Dialog state machine → NLP facade: parses replies
src/dialog/state_machine.py - Dialog state machine → LLM reasoner: interprets replies
src/dialog/state_machine.py - Assistant orchestrator → Confirmation flow: requests confirmation
src/app.py - Confirmation flow → Correction parser: parses corrections
src/dialog/confirmation.py - Correction parser → Date-time parser: parses corrected dates
src/nlp/correction.py - Assistant orchestrator → Calendar executor: executes confirmed action
src/app.py - Calendar executor → Calendar operations: dispatches operations
src/calendar_service/executor.py - Calendar operations → Calendar authentication: obtains credentials
src/calendar_service/crud.py - Calendar operations → Google Calendar API: reads and writes
- Assistant orchestrator → Alarm and timer: handles alarm requests
src/app.py - Assistant orchestrator → Calendar reminders: handles reminders
src/app.py - Calendar reminders → Calendar operations: stores reminders
src/dialog/reminder.py - Calendar reminders → Calendar executor: uses calendar actions
src/dialog/reminder.py - Assistant orchestrator → Reminder lifecycle: manages reminder lifecycle
src/app.py - Assistant orchestrator → Speech output: speaks responses
src/app.py - User → Desktop interface: uses desktop controls
- Desktop interface → GUI runner: starts assistant
akira_app.py - GUI runner → Assistant orchestrator: runs assistant
src/gui/runner.py - Desktop interface → Keyboard shortcuts: configures shortcuts
akira_app.py - Keyboard shortcuts → Input trigger queue: queues activation
src/gui/hotkeys.py - Desktop interface → Input trigger queue: queues typed commands
akira_app.py - Assistant orchestrator → Input trigger queue: checks queued inputs
src/app.py - Assistant orchestrator → User settings: loads preferences
src/app.py - Assistant orchestrator → Session state: tracks session
src/app.py - Assistant orchestrator → Greeting: greets user
src/app.py