diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-26 08:56:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-26 08:56:08 +0200 |
| commit | be9719e61feab28612499680be9efd7411c5254f (patch) | |
| tree | 61d52badaea0c27aa58d0f595710199f6fdab0f9 /examples/tools/bluetooth.sh | |
| parent | 4a357b335f74ae64714800527ac3e95b7057a3ce (diff) | |
| download | desktop-assistant-be9719e61feab28612499680be9efd7411c5254f.tar.gz desktop-assistant-be9719e61feab28612499680be9efd7411c5254f.zip | |
Let a button press cut the current reply (barge-in)
Every press bumps a turn counter and kills the running aplay; queued
audio from an older turn is dropped, and reply() now runs on its own
thread and returns once its turn is stale, so the button loop is never
blocked. A cut-off exchange is left out of history so user and
assistant messages still alternate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools/bluetooth.sh')
0 files changed, 0 insertions, 0 deletions
