feat(app): a call still being said lets the brain get ready

A partial transcript that call detection already reads as a request is sent
to the worker as prepare, so the intent judge runs while the speaker talks.
The live round trip now times the earcon and the answer's own sound apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 12:25:15 +09:00
parent 46e4e75d05
commit b88e20134f
6 changed files with 96 additions and 13 deletions

View File

@@ -155,7 +155,8 @@ and the late "left" update cancelled the new join (seen on real Discord).
from the brain, a refused `reply` (`brain_unavailable`) or a lost worker ends it as failed.
`cancel(id)` stops one request (its clip if playing, the worker's unsent sentences, or the speech of
an answer still being written) and the rest of the queue goes on. `ask_addressed(id, user, text)` and
`ask_rank(id, candidates)` pass the conversation's questions to the brain.
`ask_rank(id, candidates)` pass the conversation's questions to the brain. `prepare(user, text)` sends `prepare` (a
call still being said) and expects nothing back.
- **Earcon** (M4): `earcon()` queues the app's own earcon clip (`app/src/earcon.rs`, 48 kHz stereo,
peak 0.3 of full scale) as a request of its own: no worker round trip, `SpeakStart`/`SpeakEnd` like
any request, dropped by a stop. None when not in a voice channel.