How hamza-mint/sound-os works
Sound OS is a local, bilingual voice-control assistant. Its principal workflow captures microphone audio, detects a wake phrase, transcribes speech, parses one or more commands, applies safety checks, executes approved actions, and reports through Dave’s UI and voice. The graph preserves documented capabilities such as compound commands, fuzzy and local-LLM parsing, and headless operation. Some implementation details are unsampled; edges are limited to README statements or shown source references and calls.
Main entry points: main.py Command coordinator · rules.py Bilingual intent rules · wakeword.py Wake detection · __init__.py Parser entry point
Components 24
Runtime orchestration
- Command coordinator
main.py
Audio input
- Microphone capture
audio/recorder.py - Wake detection
audio/wakeword.py - Audio diagnostics
audio/debug_clips.py
Language understanding
- Offline transcription
stt/stt.py - Live recognition
stt/run_live.py - Transcript normalization
stt/textnorm.py - Parser entry point
intent_parser/__init__.py - Text normalization
intent_parser/normalize.py - Bilingual intent rules
intent_parser/rules.py - Compound commands
intent_parser/compound.py - Fuzzy matching
intent_parser/fuzzy.py - Local LLM fallback
intent_parser/llm_fallback.py - Verb checking
intent_parser/verb_check.py
Safety and actions
- Safety guardrails
safety/safety_layer.py - Action dispatch
executor/__init__.py - System actions
executor/actions.py
Dave interface
- UI bridge
ui_tts/dave_bridge.py - Desktop assistant
ui_tts/dave_desktop.py - Character animation
ui_tts/dave_character.py - Speech output
ui_tts/dave_voice.py
Other components
- Voice user
- Ollama service
- Linux desktop
Connections 27
- Voice user → Microphone capture: speaks into
README.md - Command coordinator → Wake detection: starts listening
README.md - Wake detection → Microphone capture: captures audio
audio/wakeword.py - Wake detection → Offline transcription: transcribes wake
audio/wakeword.py - Wake detection → Command coordinator: signals command
- Command coordinator → Live recognition: runs live mode
README.md - Live recognition → Offline transcription: transcribes audio
stt/run_live.py - Offline transcription → Transcript normalization: normalizes text
stt/__init__.py - Command coordinator → Parser entry point: parses command
main.py - Parser entry point → Compound commands: splits commands
intent_parser/__init__.py - Parser entry point → Bilingual intent rules: parses intent
intent_parser/__init__.py - Bilingual intent rules → Text normalization: normalizes text
intent_parser/rules.py - Bilingual intent rules → Fuzzy matching: tries fuzzy match
intent_parser/rules.py - Bilingual intent rules → Local LLM fallback: uses fallback
intent_parser/rules.py - Fuzzy matching → Text normalization: normalizes input
intent_parser/fuzzy.py - Fuzzy matching → Bilingual intent rules: checks rule matches
intent_parser/fuzzy.py - Command coordinator → Verb checking: checks command
main.py - Command coordinator → Safety guardrails: checks permission
main.py - Command coordinator → Action dispatch: dispatches action
README.md - Action dispatch → System actions: invokes actions
executor/__init__.py - Local LLM fallback → Ollama service: requests inference
intent_parser/llm_fallback.py - Command coordinator → UI bridge: updates assistant
main.py - UI bridge → Desktop assistant: routes messages
ui_tts/dave_bridge.py - Desktop assistant → Character animation: renders character
ui_tts/dave_desktop.py - Desktop assistant → Speech output: speaks responses
ui_tts/dave_desktop.py - Speech output → Voice user: plays speech
README.md - System actions → Linux desktop: controls desktop
README.md