Info // 01

Voice and vision

Press a key and talk, or go hands free, or say her name. She answers out loud while she's still thinking, stops when you talk over her, can look at what's on your screen, and, if you let her keep the webcam, notices when you sit down and knows who's talking.

Three ways to talk

One key, Home, and three modes for it. Switch live with /mode; the choice is saved.

ModeHome doesRecording ends when
autostarts listeningyou stop talking. The quick question.
manualstarts recording immediatelyyou press Home again. Think, trail off, come back; silence is ignored.
openarms the mic and leaves it armedyou stop talking, she answers, the mic re-arms. Hands free.

Pressing Home while she's thinking or talking cancels the turn, and quiets anything she's saying so the mic hears you and not her. Typing works too: it's a terminal, and Enter sends.

She knows when you're talking

Speech is detected with Silero VAD, a small speech-or-not model, rather than by measuring loudness. A level meter can't tell your voice from a fan, so it has to sit high enough to ignore the room, which makes it late to trigger and quick to cut off a quiet syllable. Silero knows the difference, and /mic shows you what it measured on the last recording so tuning is something you can look at rather than guess at.

She can hear how you said it

Optional, and off until you turn it on. Normally Whisper writes down what you said and the model gets the words: a sigh, a laugh or a sarcastic "great" are gone by then. An omni model can take the sound itself. With stt.send_audio on, the recording goes to the model along with the words, the same way a screenshot goes along when she looks at your screen, so tone comes through.

It needs llama.cpp and an omni model with its mmproj file: Qwen3-Omni 30B-A3B, Qwen2.5-Omni 3B or 7B, or Gemma 4 E2B or E4B. llama.cpp says whether the loaded model can hear, so the switch can stay on: a text-only model just gets the words. Whisper still runs on every recording, so commands, history and memory are built from the words as before, and the recording is only part of that one request, never kept. Audio costs tokens, about 25 a second, so recordings over 30 seconds go as words only. /hear tells you whether it's working and why not. It's built and tested against a stand-in server; a real omni model run is still to come.

Talk over her and she stops

Your microphone hears her too, and Silero is right to call that speech. There's no echo cancellation, so the first half-second of playback measures how loud she is at your microphone, and after that it takes both a confident speech classification and a level well above that baseline to count as an interruption. On headphones it's trivially reliable. A barge-in stops the audio only: the reply keeps generating and stays on screen, so a misfire costs you the sound, never the answer.

Or say her name

Optional. openWakeWord runs a small classifier over 80 ms frames, cheap enough to leave running all day without Whisper or the language model waking up. Stock phrases ship with it; "hey Luna" is an hour in its training notebook. With a wake word loaded, open mode waits for her name instead of starting on any speech at all, and keeps listening for a follow-up so you don't have to say it twice.

Luna's conversation pane in the terminal
The conversation pane. Status, voice mode, memory backend, voice server and model along the top; Tab cycles to help, the tools pane and the settings pane.

She starts talking a sentence in

Replies are streamed. Each sentence goes to the voice server the moment the model finishes writing it, so she starts speaking while the rest of the reply is still being generated, and the next chunk is synthesized while the current one plays. Her voice is Kokoro, served by kokoro-reader, a small shared server, so one loaded model answers every app on the machine and she starts in seconds.

Nothing is tied to Kokoro. The client speaks a three-endpoint contract (/tts, /health, /voices) and knows nothing else about what's behind it, so any speech server that returns a sentence's worth of WAV promptly will do. Pitch is shifted after the audio comes back, in semitones: +3 reads as younger, -3 older, and /set tts.pitch 3 applies while she talks. Her mood tints it too, a few percent slower and lower when she's sleepy, faster and higher when she's excited.

Or her voice can come from ElevenLabs, if you'd rather. Set tts.provider to elevenlabs, put your API key in a file outside the repo, and /voice lists the voices on your account; /voice <name> picks one. Everything else stays the same: streaming, mood speed and pitch, volume, lip sync. It is the one part of her that then leaves the house: each sentence she says is sent to ElevenLabs to be spoken. Kokoro stays the default.

From another window

Home works while her window is focused. To start a turn mid-game or with the browser in front, there's a control socket; bind a key in Hyprland, Sway, KDE, GNOME, Hammerspoon or AutoHotkey to ai-voice-ctl.py ptt. She never takes focus, which is also the better way to use vision: the screenshot is of what you were actually looking at, not her own terminal.

From another room

A phone or tablet in another room becomes a relay station: you talk or type there, and she answers through its speaker. On Android, the way to do it is the Luna Station app, made to sit somewhere in the house as a room device: her portrait full screen with one big talk button, or the conversation, switched at the top without interrupting her. Pairing is a QR code from her settings page that works once, for fifteen minutes, and the app trusts Luna's certificate on its own, with nothing to set up in Android's settings. It runs on Android 11 or newer, Fire tablets included, installed from an APK. The whole story is on Relay stations.

It's the same Luna as at the desk, same memory, mood, people and tools, and the terminal shows the turn marked with the room: [kitchen] .... A spoken turn is checked against the voice prints like any other; a typed one has no voice to check, so it counts as yours, the same as your keyboard. A paired device stays paired until you unpair it. When she wants to do something that needs your OK, the Allow and Deny buttons appear on the device that asked, never answered for you. She only ever listens on home-network addresses, and the certificate she uses is made on your PC and can't vouch for anything outside your house.

Her portrait on a station is drawn on the device, moving with her mood, gestures and voice, and it only gets what moves her: never what you said at the desk, never her thinking.

No Android device? Any phone or tablet's browser works too, iPhone and iPad included: the same conversation as a web page, after trusting Luna's certificate once by hand. It does the job, but where you can, use the app.

Dedicated voice boxes that run ESPHome (Home Assistant's Voice Preview Edition, a Satellite1, a ReSpeaker Lite) can be stations too, with no Home Assistant in between: they hear their own wake word and cancel their own echo, and Luna takes the audio straight from them so she knows whose voice it is. That part is written from the documentation and not yet run against a real device, and the wiki says so.

The Luna Station app on an Android phone in Portrait view: Luna in a cosy room by a window at night, the start of her reply under her, and a big microphone button
Luna Station, Portrait view: her portrait full screen, her words under her, one big talk button.
The Luna Station app in Chat view: the end of a short story she wrote and her question after it, then the text box with its paperclip for sending a file, and the microphone
Chat view: the conversation, typed or spoken, with a paperclip to send her a picture or a file.

Vision

"What does this error say?" "Read my editor for me." With a model that can see (a vision model in LM Studio, or the model's mmproj file on llama.cpp), look_at_screen takes a screenshot and she actually sees it. Name a window and it's matched in Python, including the generic words people use: "my browser", "my editor", "the music player". The picture lives for exactly one turn and is never written to history.

The webcam is off until you switch it on. Then it's one picture per request, nothing saved, only from your own turns at the desk, never from stream chat, Discord or a scheduled job, and your camera's own light comes on so you see it happen. A network camera or a phone app works too: point her at a snapshot URL. When the loaded model can't take images, the tools aren't offered at all and the tools pane says why, instead of an assistant that confidently describes a screen it never looked at.

She notices you're there

Presence is a separate switch, off by default. With it on, the webcam stays open and she checks for a face a few times a second, which costs a few percent of one CPU core and no GPU. When you come back after twenty minutes away she says hi, once, in one line, and only if nothing else is going on. The startup "welcome back" waits until someone is actually in the chair. Her portrait's eyes follow your face instead of aiming at the terminal. And after five minutes of an empty room, games and scheduled jobs keep running and keep showing on screen, but stop talking out loud to nobody.

Your camera's light stays on the whole time it watches; that is the honest signal that it is. Nothing is recorded or sent anywhere. Frames live in memory, and the newest one also answers look_at_camera, so the two never fight over the camera. Face finding and face prints are two small OpenCV models, about 40 MB together, downloaded once and run on the CPU. /presence on switches it on, and every knob (how long away counts as away, how long empty counts as empty, whether she looks, whether she greets) is in the settings pane.

She knows who's talking

Luna is set up for one person, but a house has more than one. Enroll the others and she tells you apart two ways: by voice on every spoken turn, and by face while presence is watching. A voice print is made from the same recording Whisper transcribes, compared in a thread beside it, so it adds no time to the turn. A matched voice wins; the face only stands in when voices can't be compared at all; otherwise the speaker is you, since the keyboard and the unknown voice are yours.

Then she uses that person's name and pronouns for the turn, and keeps their memories separate. Facts she learns about Shannon go into Shannon's file, her prompt shows only Shannon's facts and none of your preferences, and "forget that" on Shannon's turn touches only Shannon's facts. The conversation is still one conversation, labelled [Shannon] what's for dinner?, so later turns don't put her words in your mouth.

/people enroll voice Shannon    her next five spoken turns become voice prints
/people enroll face Shannon     she looks at the camera for a few seconds
/people                         who Luna knows, and how many prints each
/people forget Shannon [voice]  forget the voice prints, or the whole person

Prints are numbers describing a face or a voice, not pictures or recordings. They live in a folder kept out of git and never leave the machine. The speaker model is SpeechBrain's ECAPA, about 80 MB, installed with the voices extra; faces come with the camera extra. Enroll in the room she listens in, from where you normally sit, and enroll again if she gets you wrong: new prints add to the old ones.

Reminders and alarms

"Remind me in ten minutes to clean the desk." "Every weekday at 7:30." "Nudge me next Friday at 4 about the invoice." The model passes your timing words through untouched and Python does the dates, because a small model is bad at "what is two days in minutes" and perfectly fine at repeating "two days". Repeats are measured from when a reminder was due, daily times survive the clocks changing, and anything that came due while she was closed is delivered on the next launch, once, however long she was closed. Repeats are at least a minute apart, and a reminder that's been delivered is never delivered twice, even if something goes wrong straight after.

An alarm is the same schedule with a different delivery: she says something written for that alarm, a tone plays at its own volume, and it repeats until dismissed, getting less charming about it around the third time. Talking over it dismisses it. "Wake me at 6" is six in the morning, where "remind me at 6" is still the evening, because six in the evening has never once been what an alarm meant.

The help pane listing every key and slash command
The help pane. Every key and slash command, and which voice mode you're in.