Commit dfd1815
committed
chore(call): suppress mpg123 buffer underflow warnings in npm run call
The `speaker` npm package delegates to mpg123/coreaudio on macOS, which
writes `Didn't have any audio data in callback (buffer underflow)` lines
directly to stderr from native C code whenever the playback queue
briefly empties between WebSocket audio chunks. These are normal
operational noise (not errors) but can dominate the CLI output 3-15
times per call.
Wrap the `call` script with `bash -c` + a stderr process substitution
filter that drops any line containing "buffer underflow". The wrapper
uses `exec` so signals (Ctrl+C) pass through unchanged to tsx. bash is
invoked explicitly so the filter works regardless of npm's default
script-shell (sh/dash on some Linux distros doesn't support process
substitution).
Only affects the `npm run call` CLI — no runtime behavior change for the
voice agent or any other command. Every downstream customer clone of
this template benefits automatically.1 parent e210277 commit dfd1815
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments