Move LD_LIBRARY_PATH out of env block and include portaudio so
audio devices are discoverable at runtime. Add flake.lock and
a quick microphone test script.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove frame_buf accumulation: blocksize=FRAME_SIZE guarantees indata is
exactly FRAME_SIZE samples, so buffering was unnecessary. Use indata[:, 0].copy()
to avoid stale references from sounddevice's buffer reuse.
- Replace pre_roll list with collections.deque(maxlen=PRE_ROLL_FRAMES) to
eliminate manual bounds-checking (pop(0)) on every frame.
- Warn to stderr if the transcription worker thread outlives its 30s join timeout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>