fix(app): a wake word said alone waits for what the speaker says next
A pause after the name ("자비스, ... 지금 몇 시야?") is longer than the
worker's 300 ms end silence, so the wake word ended its own utterance:
Jarvis answered the bare name and ignored the question that followed (no
wake word). Found on real Discord. A voice utterance that is only a wake
word is now joined to the same speaker's next final when that utterance
is running or starts within call.followUpMs (default 1500); otherwise the
wake word alone is the request after that time. Stops drop it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@ Settings (`settings.json`, section `call`; wake words stay in `voice.wakeWords`)
|
||||
| `call.designatedOnly` | `false` | Answer only designated people. |
|
||||
| `call.designatedNoWakeWord` | `false` | Answer designated people without a wake word. |
|
||||
| `call.stopWords` | `["멈춰", "그만", "정지", "stop"]` | Said together with a wake word, they stop Jarvis in any policy. |
|
||||
| `call.followUpMs` | `1500` | After a wake word said alone, how long the speaker's next utterance may take to start and still be joined to it. 0-5000. |
|
||||
|
||||
Normalisation: Unicode NFKD, lower case, and only letters and digits kept (spaces, punctuation and
|
||||
combining marks dropped). NFKD splits Hangul syllables into their letters, so "자비즈" is one letter
|
||||
@@ -54,6 +55,17 @@ Decision for one utterance (`judge(speaker, text)`), in order:
|
||||
|
||||
The text sent to the brain is the utterance as heard; the brain treats the wake word as address.
|
||||
|
||||
**A wake word said alone.** People often pause after the name ("자비스, ... 지금 몇 시야?"), and a
|
||||
pause longer than the worker's `end_silence_ms` ends the utterance there. A voice utterance that is a
|
||||
wake word and nothing else (no letters or digits left once the wake word is removed) is therefore
|
||||
not a request yet: the conversation keeps it for that speaker and joins it to their next final, with
|
||||
a space between, and judges the joined text as one utterance (so "자비스" then "멈춰" is a stop). If
|
||||
the speaker's next utterance already started when the wake word's final came, or starts within
|
||||
`call.followUpMs` of it, the wake word waits for that utterance's final however long it takes;
|
||||
otherwise, after `call.followUpMs`, the wake word alone is the request. Other speakers' utterances
|
||||
never join it, and a stop (voice, slash command or leaving) drops it. Chat messages are not joined:
|
||||
a message is complete as sent.
|
||||
|
||||
## Response policy
|
||||
|
||||
Settings (section `response`):
|
||||
|
||||
Reference in New Issue
Block a user