Skip to content

About

Reachy Mini as a Muse voice gadget: on-robot, Muse-voice and companion modes, plus the Mac companion server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

585 Commits

Folders and files

Repository files navigation

reachy-muse

reachy-muse lets you talk to Muse through a Reachy Mini robot. You speak to the robot, Muse answers, and the robot speaks the answer. Its head and antennas move while it listens, thinks and talks.

The repository has two programs:

  • muse-reachy runs on the robot.
  • reachy-companion runs on a Mac on the same network. It is optional.

Pick a mode

muse-reachy run --mode decides who hears you and who speaks.

  • muse-voice is the default. The robot records what you say and sends the audio to Muse. Muse writes the answer and speaks it. The robot needs no speech models.
  • on-robot keeps speech on the robot. Whisper turns your words into text, and Piper speaks Muse's answer.
  • companion lets the Mac hear, speak and narrate for the robot. If the Mac stops answering, the robot continues with its own on-robot models without announcing the outage or voice switch. It logs the fallback once per outage.

In on-robot and companion modes, the robot handles requests about itself without Muse. "Go to sleep" and "stop listening" return it to the wake word, "louder" and "quieter" step its speaker volume, "look at me" and "stop looking at me" switch face tracking, and "stop talking" cuts off an answer that is still playing. After "go to sleep", Reachy bows its head and folds its antennas. "Hey Muse" wakes it: the head lifts and the antennas unfold over one second. Said alone, "Hey Muse" gets "I'm awake."; a question in the same breath goes straight to Muse. In companion mode, the Mac's narrator model also recognizes paraphrases such as "could you quiet down a little".

Add --wave-wake in on-robot or companion mode to also wake Reachy with a raised hand moving side to side for about 1-3 seconds. It works with or without --wake-model and opens the same microphone window. Reachy waves both antennas with a happy head bob for 1.6 seconds, even in still mode. It also waves back when already awake and idle or listening. Waves during speech are dropped. Another wave is eligible after three seconds without hand motion; Reachy's own gesture and settling motion are ignored. Frames stay on the robot. Detection pauses during speech, turn processing and morning arrival watching. With --face-follow-idle, Reachy follows the face and watches for a wave once its head settles. Head movement discards any partial wave. Microphone capture has its own reader; low audio coverage automatically throttles or suspends local vision. See microphone measurements. Keep screens showing people outside its view: a video of a waving person can also trigger it. See wave measurements and limitations.

Add --photo-requests in on-robot or companion mode to let you show Muse something. When you ask Reachy, right after "Hey Muse" or by its name, "what do you see?" or "take a photo of this and tell me what it is", it plays a shutter sound and sends Muse one photo with your words, then speaks Muse's answer. It is off by default and needs OpenCV on the robot. Only a spoken request that Reachy hears takes a photo: Muse cannot ask for one, and no image is saved. See Photos for Muse.

Presence and notifications

Add --place office to muse-reachy run to tell Muse where Reachy sits. The label is optional and has a 64-byte limit. With --face-follow --face-follow-idle, a face can establish presence while Reachy is idle. Voice wakes, recent voice turns, wave cues and the morning arrival watcher also contribute. Frames stay on the robot; presence does not identify the person.

Reachy's registration asks Muse to prefer it for notifications and proactive suggestions while someone is present. Muse checks reachy.presence, then calls reachy.notify with mode: now when present or mode: when_present otherwise. Reachy waits while asleep, hushed or in a conversation, then waves its antennas and speaks through its normal speech path. This requires on-robot or companion speech synthesis. Delivery goes to whoever is present; voice verification is not calibrated for notification recipients.

The local JSON inbox survives restarts. It holds up to 20 IDs, including completed receipts until expiry, with a default lifetime of four hours and a maximum of 24 hours. Reusing an ID retrieves its result without repeating completed speech. See the command contract for parameters, expiry, crash behavior and unpair cleanup.

During the morning briefing window, a voice wake, wave or face seen by idle follow also counts as arrival. The briefing still runs at most once per day. These cues wait for any active voice turn to finish before the greeting. Speaker-direction polling uses one worker and keep-alive connection at no more than 5 Hz, only around microphone activity or an open wake window.

Install on the robot

reachy-muse needs Python 3.10 or later. The robot's own environment uses Python 3.12.

Copy this repository to ~/reachy-muse on the robot. Copy the Muse Gadget SDK to ~/muse-gadget-sdk, checked out at the commit that pyproject.toml pins. Then follow Install on a Wireless robot in the Reachy Mini guide. It creates ~/muse-reachy-venv next to Reachy's own environment and installs both checkouts into it. The same guide covers the speech models, pairing with the Muse app, wake words and startup at boot.

Optional speaker verification

Install the voice-verify extra and obtain the local speaker ONNX model described in the CPU benchmark. On the robot, enroll three prompted phrases with muse-reachy enroll-voice --voice-model models/speaker.onnx. Add --voice-model models/speaker.onnx --voice-verify strict to your usual run command with --wake-model to check wakes and request segments locally.

off is the default. soft logs scores in chat and gates realtime calls; chat fallback returns to observation. strict also gates chat and gives a quiet local chime when it rejects speech. Request checking adds roughly one second of delay, including for interruptions. The embedding stays in the robot's state directory as voice-profile.json, mode 600; recordings are not saved or transmitted. muse-reachy enroll-voice --forget deletes it without opening the microphone. Restart a running conversation after replacing or forgetting enrollment so it discards its in-memory profile.

This is experimental. Synthetic evaluation found substantial false accepts and noise-related false rejects; it does not establish a secure identity check. See the benchmark for the threshold, error rates, model license, and unmeasured robot checks.

Install the companion on a Mac

The companion needs a Mac with Apple Silicon, Python 3.10 or later and about 15 GB of free memory. Run these commands in this repository:

uv venv --python 3.13
uv pip install -e '.[companion-server,test]'
reachy-companion pair
reachy-companion serve

pyproject.toml pins the SDK to one commit of its Git repository, and uv installs it from there. To work on the SDK at the same time, put its checkout next to this repository and install it in place of the pin:

uv pip install -e '.[companion-server,test]' --override <(echo "musegadget @ file://$PWD/../muse-gadget-sdk/linux")
uv pip install -e ../muse-gadget-sdk/linux

pair prints the address, certificate pin and token. Add them on the robot with muse-reachy companion add. The companion server guide explains each step and the models it loads. It also explains how the companion can recognize the owner's voice on the Mac, which only labels requests and gates nothing.

How it uses the Muse Gadget SDK

The Muse Gadget SDK (musegadget) does everything that talks to Muse. It pairs the robot with the Muse app, keeps the encrypted link to Muse open, sends each spoken request and follows Muse's answer. reachy-muse uses only the parts of the SDK that the "Building a gadget" section of its linux/AGENTS.md lists. Everything else here is the robot app: audio, wake words, speech models, motors, face tracking and the companion.

pyproject.toml pins the official upstream repository at 4737636133c9a0253d0b778333605b16fd2626c1. All changes from the fork are now upstream, including the public Service hooks from PR #142, merged as 729d0c8.

What Muse and the robot agree on lives here, in reachy_muse.contract: the robot commands, the expressions, the prompts and the reply formats. The Reachy Mini contract with Muse lists them.

Test

Install the same way with the robot,test extras, or companion-server,test, then run each suite:

.venv/bin/python -m pytest tests --ignore=tests/companion_server
.venv/bin/python -m pytest tests/companion_server

License

Apache-2.0. See LICENSE. The face detection model in src/reachy_muse/data/face_tracking has its own MIT license next to it. Speech sway and motion crossfades come from reachy-animation, also Apache-2.0. See NOTICE.

About

Reachy Mini as a Muse voice gadget: on-robot, Muse-voice and companion modes, plus the Mac companion server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages