feat(voice): in a game, partial transcription waits while an answer is written
- the app's ready message says whether the game stage runs (llm ready game=true); the worker then holds partial passes while a reply is being written and runs them again, the newest audio per speaker, when no answer is; finals never wait; without a game nothing changes - M0 gamemode_tune decision: the game placement answered 1.7 times faster with partials held (64.9 against 37.5 tok/s with a partial pass every 2 s) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -125,7 +125,8 @@ wait seconds behind it; two clips keep that wait to about one clip's time. With
|
||||
captions fall behind and only the newest audio per speaker is transcribed.
|
||||
|
||||
Batches are grouped by decode settings (beam, language, hotwords). A partial whose utterance has
|
||||
already ended, or that is older than the last partial sent, is dropped.
|
||||
already ended, or that is older than the last partial sent, is dropped. In a game, partials wait
|
||||
while an answer is being written ("LLM switches"); finals never wait.
|
||||
|
||||
### Hallucination gate
|
||||
|
||||
@@ -356,7 +357,7 @@ The app restarts the LLM with another placement when a game starts or ends (app/
|
||||
```
|
||||
-> {"type": "llm", "state": "switching", "id": 7, "notice": "잠깐만요, 게임 모드로 바꾸는 중이에요"} // id, notice optional
|
||||
<- {"type": "llm_idle", "id": 7} // nothing that uses the LLM runs any more (id: the switch's, when it had one)
|
||||
-> {"type": "llm", "state": "ready"} // the LLM answers again
|
||||
-> {"type": "llm", "state": "ready", "game": true} // the LLM answers again; game optional (default false)
|
||||
-> {"type": "llm", "state": "paused"} // the LLM is stopped (a game runs)
|
||||
```
|
||||
|
||||
@@ -369,7 +370,13 @@ The app restarts the LLM with another placement when a game starts or ends (app/
|
||||
then fails without calling the brain (the LLM may still be away, or a measuring server stand in).
|
||||
- On `paused` brain work answers nothing at once (`reply_text` `failed`, judgements failed) until
|
||||
`ready`; what waited for a switch stops waiting the same way.
|
||||
- Any other `state`, a notice that is not a string or an id that is not an integer is `bad_message`.
|
||||
- `game` on `ready` says the LLM runs in the game placement: from then on, while a `reply` is being
|
||||
written, partial passes wait (finals go on at once, "Scheduling"); when no answer is being written
|
||||
they go on, the newest audio per speaker. `ready` without it (or false) ends that. Without a game
|
||||
partials never wait (M0 `gamemode_tune`: with partials held the game placement answered 1.7
|
||||
times faster, 64.9 against 37.5 tok/s with a partial pass every 2 s).
|
||||
- Any other `state`, a notice that is not a string, an id that is not an integer or a `game` that is
|
||||
not a boolean is `bad_message`.
|
||||
- The app sends its latest `llm` message again first on every connection, so a worker that missed
|
||||
one (a dropped connection, a restarted worker) catches up.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user