--- name: audio description: Audio on the Arduino Uno Q — microphone capture and audio output via ALSA on the Linux side, plus speech (whisper/vosk/espeak). Load this for recording sound, playing audio, or speech-to-text / text-to-speech on the board. --- # Audio on the Uno Q (Linux side) Audio endpoints (mic, headphone/line-out via JMISC) are **Linux/MPU** devices, driven through **ALSA**. Sketches on the MCU do not handle audio. ## Record / play (ALSA) ```sh arecord -d 5 -f cd /tmp/clip.wav # record 5s aplay /tmp/clip.wav # play arecord -l # list capture devices ``` ## Speech (Python, MPU) - **STT:** `whisper` (or `vosk` for a lighter offline model). - **TTS:** `espeak` / `espeak-ng` (offline, no key). ```sh espeak-ng "Sketch flashed." ``` ## Pitfalls - No Arduino audio libraries — audio is a Linux-side capability. - Keep models small; the MPU is also hosting the LLM (~1.1 GB RSS) on the 4 GB SKU.