1.1 KiB
1.1 KiB
Qwen Context: alexander_smart-speaker
Goal
Voice assistant for Linux with wake word, STT/TTS, AI dialogue, weather, timer/alarm/stopwatch and volume control.
Architecture
- Entry:
run.py->app/main.py - Audio layer:
app/audio/(wakeword.py,stt.py,tts.py,sound_level.py) - Core logic:
app/core/(commands.py,ai.py,config.py,cleaner.py) - Features:
app/features/(weather, timer, stopwatch, alarm, music, cities game) - State:
data/*.json
High-Value Files
app/core/commands.pyfor intent routingapp/main.pyfor event loop and orchestrationapp/core/config.pyfor env configuration
How To Work In This Repo
- Keep edits minimal and local.
- Prefer fixes with clear fallback behavior (microphone/API failures).
- Do not hardcode secrets; use
.envand.env.example. - Update README when behavior/commands change.
Quick Checks
./scripts/qwen-check.sh
Notes For Agent
- If touching audio code, keep Linux compatibility first.
- For command parsing, add/adjust tests when test infra exists.
- Preserve Russian command phrases compatibility.