diff --git a/assistant/lumi.py b/assistant/lumi.py index 788bb23..655ae32 100644 --- a/assistant/lumi.py +++ b/assistant/lumi.py @@ -3334,11 +3334,7 @@ class Lumi: self.brain.reset() self.closing_pending = None command = rest if len(rest) > 2 else text if re.search(r"how are you", text, re.I) else "" # answered - target = self.find_caller(robot_angle, trusted) - if target is not None: - target.greeted = True - self.current = target - self.face(target) + self.look_at_speaker() # as "look at me": the cameras, the voice's side, behind if not command: # just "Hi Lumi": a short answer, then listen mouth.say(WAKE_REPLY[lang]) self.voice_until = time.time() + VOICE_SESSION_S diff --git a/tests/test_wake.py b/tests/test_wake.py index 429c141..25b5e10 100644 --- a/tests/test_wake.py +++ b/tests/test_wake.py @@ -110,6 +110,7 @@ def fresh(*tracks, utts=()): L.mission_hold = None L.warm_llm = lambda: None L.who_spoke = lambda u, text=None: done.append("who spoke") + L.look_at_speaker = lambda: done.append("look") # tests/test_look_me.py checks where it turns lumi.ears.listen = lambda **k: (None, None) done.clear() up.clear() @@ -125,7 +126,7 @@ for call in ("Lumi.", "Hi Lumi.", "Hi.", "Hello Lumi!", "Hello.", "Hey Lumi", "H "헤이 루미", "루미야 일어나", "루미 일어나세요.", "일어나세요.", "깨어나 루미야"): L = fresh() L.mic = Mic(U(call)) - assert L.check_wake(), call + assert L.check_wake() and "look" in done, call # turns to the caller (as "look at me") before answering assert lumi.call_only(call), call for heard in ("Let's make music.", "What is that?", "We make it.", "Let's.", "It looks fun.", "Okay.", ""): L = fresh()