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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user