Battle-tested troubleshooting guides and patterns from building a distributed voice assistant system with Rust, ESP32, Raspberry Pi, LiveKit, and Flutter.
Each skill documents real problems encountered, failed attempts, and verified solutions — not theoretical best practices.
| Skill | Topic | Key Lessons |
|---|---|---|
| esp32-wifi | ESP32 WiFi debugging | CpuClock::max() is mandatory; esp-hal 1.0 API gotchas |
| esp32-firmware | ESP32 no_std firmware | Multi-board architecture, I2S DMA, GPIO register access |
| cross-compilation | Rust cross-compile for ARM/x86 | webrtc-sys GCC issues, Docker toolchains, rustls migration |
| livekit-deployment | LiveKit public cloud deployment | node_ip config, Docker Hub in China, WebRTC timeouts |
| echo-loop-prevention | Audio echo loop fix | Ring buffer drain, guard period, ai_speaking state machine |
| raspberry-pi-audio | Pi 3B + USB audio devices | XVF3800 USB speed, ALSA config, cpal device selection |
| vad-calibration | Voice Activity Detection tuning | Median calibration, configurable margin, adaptive thresholds |
| audio-pipeline | STT/LLM/TTS pipeline patterns | Resampling chains, streaming vs batch, latency optimization |
| cloud-deployment | Alibaba Cloud ECS deployment | cross-rs GCC bugs, systemd services, Docker image transfer |
| flutter-livekit | Flutter LiveKit voice client | Token flow, PTT/VAD modes, 3D orb UI architecture |
These skills are designed to be referenced when you encounter similar problems. Each follows the pattern:
- Symptom — what you observe
- Root Cause — why it happens
- Failed Attempts — what doesn't work (saves you time)
- Solution — the verified fix
- Prevention — how to avoid it next time
- Firmware: Rust no_std, esp-hal 1.0, esp-radio 0.17, smoltcp
- Voice Client: Rust, cpal, LiveKit Rust SDK, tokio
- Server: LiveKit, UserAgent (axum), token-server
- Mobile: Flutter, livekit_client SDK
- Hardware: ESP32-S3/C3/WROOM-32E, Raspberry Pi 3B, XVF3800 mic array, JieLi BR21 USB amp