feat(voice_worker): the v2 brain answers in Korean unless asked for another language

The brain passes default_language (worker --reply-language, default Korean) to
the reply engine; unlike the output_language lock it gives way when the user
explicitly asks for a language. Tools get the ko code (--tool-language).

Eval evals/test_reply_language_default.py (Qwen3.6 on Strata): 6/6, English
questions answered in Korean, an explicit English request in English, and the
control without the default answers English in English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 10:34:12 +09:00
parent cefe9b9253
commit 7623d6d002
9 changed files with 170 additions and 25 deletions

View File

@@ -233,10 +233,14 @@ which carry Discord's own time.
`cancelled: true` and no audio. Each user keeps their own short-term dialogue
memory (tool carry-over) across replies. The brain runs the reply engine with v1's single-user
memory off (`legacy_memory=False`: no warm profile, diary or graph), because several people share
this assistant and only the asker's scoped history may reach the prompt. It answers in the
asker's language: v1's `tts_engine` setting (an English-only Piper voice by default) does not
lock replies to English, because v2 speaks through the worker's TTS and chat answers are not
spoken. An `output_language` lock in the jarvis settings still wins.
this assistant and only the asker's scoped history may reach the prompt. It answers in Korean
by default (`--reply-language`, default `Korean`; `''` answers in the asker's language), whatever
language the question was heard or written in, and in another language only when the asker
explicitly asks for it (just that answer, or from then on, as they said). Tools get the ISO code
`--tool-language` (default `ko`). v1's `tts_engine` setting (an English-only Piper voice by
default) does not lock replies to English, because v2 speaks through the worker's TTS. An
`output_language` lock in the jarvis settings still wins. Eval: `evals/test_reply_language_default.py`.
STT (`language` `"ko"`) and TTS (`--melo-language KR`) are Korean by default too.
The asker is set in `jarvis.reply.turn_state` for the turn, so tools that keep personal data
(meals) store and read it under that person only.
- `addressed` and `rank` are the conversation's questions (`app/src/conversation.spec.md`), answered