Improve Korean understanding at every speech level and long talks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 07:36:03 +09:00
co-authored by Claude Opus 5.5
parent 284638a22d
commit 1411676269
13 changed files with 1006 additions and 71 deletions
+2 -1
View File
@@ -77,7 +77,8 @@ def read(text, last=""):
"""("volume" | "speed", +1 | -1) when the words ask Lumi to speak louder / quieter / faster / slower, else None.
`last` is the assistant's answer just before (brain history): after "ACTION: voice volume +1" a bare "more" /
"again" / "조금 더" asks for the same again."""
t = text or ""
from assistant import wording
t = wording.polite(wording.ko_plain(text or "")) # every speech level as 반말, no "if you don't mind"
again = re.match(r"ACTION: voice (volume|speed) ([+-]1)\b", last or "")
if again and driving.AGAIN.search(driving.clean(t)):
return again.group(1), int(again.group(2))