Turn to the caller while answering and turn the waist faster

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 18:22:45 +09:00
co-authored by Claude Opus 5.5
parent 060088650b
commit b4ab7c71b1
7 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -619,7 +619,7 @@ def score_silence(c, old, use_llm):
outcome, said = "silent", ""
else:
rest = text[m.end():].strip(" ,.!?")
outcome, said, text = ("greet", lumi.WAKE_REPLY["en"], "") if len(rest) <= 2 else ("talk", "", rest)
outcome, said, text = ("greet", lumi.WAKE_REPLY["en"][0], "") if len(rest) <= 2 else ("talk", "", rest)
else:
outcome, said = "talk", ""
with mock.patch.object(lumi.mouth, "recent_speech", lambda s=30.0: x["lumi_said"] or ""):
+1 -1
View File
@@ -141,7 +141,7 @@ assert not lumi.WAKE.search("I wake up at 7 every day") and not lumi.WAKE.search
L = fresh() # "How are you?" is answered, not "Yes? How can I help?"
L.mic = Mic(U("How are you?"))
L.check_wake()
assert ("answer", "How are you?") in done and lumi.WAKE_REPLY["en"] not in said(), done
assert ("answer", "How are you?") in done and not set(lumi.WAKE_REPLY["en"]) & set(said()), done
L = fresh() # "Hi Lumi, go home": done at once
L.mic = Mic(U("Hi Lumi, go home."))
L.check_wake()