A local voice assistant for macOS. Wake word, speech recognition, language model and speech synthesis stay on your machine.
Orbis is a browser interface backed by a small FastAPI server. Say its name, ask a question out loud, and it answers with a voice. The wake detector, the speech recognizer and the default language model all run on the Mac. No audio leaves the machine. When a cloud provider is selected, only the transcribed text is sent.
The character on the left is part of the interface, not a video. It blinks, looks around, breathes, sleeps when idle and moves its mouth only while Orbis speaks.
The browser interface, served from the local FastAPI process.
| Area | Detail |
|---|---|
| Wake word | A local ONNX classifier detects "Orbis" and close pronunciations. The acoustic hit is confirmed by speech recognition before a reply. |
| Conversation | Push to talk, continuous listening, follow-up without repeating the name, and voice interruption while Orbis speaks. |
| Recognition | Apple SpeechAnalyzer through a small Swift helper, streamed over a binary protocol. |
| Language model | Gemma 4 E4B 4-bit through MLX by default. DeepSeek or any OpenAI compatible endpoint can be selected. |
| Synthesis | Apple say by default. Piper, Kokoro, Supertonic and Voicebox profiles are discovered when installed. |
| Interface | French and English, responsive layout, installable PWA, strict CSP, no inline script or style. |
| Privacy | No telemetry. Settings, logs, temporary audio and voices live under data/, which is ignored by git. |
Browser microphone
16 kHz mono PCM, 20 ms frames
|
v
FastAPI WebSocket
wake detector (ONNX) -> Apple SpeechAnalyzer (Swift)
|
v
Gemma through MLX, or DeepSeek
|
v
Piper, Kokoro, Apple say, Supertonic or Voicebox
|
v
Browser audio player, character speaks
The follow-up window opens when the browser reports that playback has ended, not when text generation ends. A long answer therefore cannot consume the window before the question at its end is heard.
- macOS 27 or newer, with Xcode Command Line Tools. The speech helper links against the SpeechAnalyzer framework and is built for the installed SDK.
- Python 3.12 and uv.
- Apple silicon for the local Gemma model through MLX. On Intel Macs, use DeepSeek or another OpenAI compatible endpoint.
- About 6 GB of free disk space for the default Gemma model and the optional voices.
- Microphone and speech recognition permissions, granted on first use.
- Windows and Linux are not supported for the voice pipeline. SpeechAnalyzer
and the Swift helper are macOS-only. A
.cmdlauncher would start the server without working recognition, so the project does not ship one.
git clone https://github.com/infinition/orbis.git
cd orbis
./scripts/start.shThe script installs the Python dependencies, builds the Swift helper when it is
missing or older than its source, starts the server and opens
http://127.0.0.1:8765. ORBIS_NO_BROWSER=1 disables the browser. ORBIS_HOST
and ORBIS_PORT change the bind address.
The same steps can be run separately:
uv sync --extra dev
./native/build.sh
./scripts/dev.shscripts/run.sh starts the server without the reload watcher.
The first voice turn downloads the default Gemma model through mlx-lm. Later
turns reuse the local copy. If the download is not wanted, open Settings,
choose DeepSeek and paste an API key, or point ORBIS_LLM_BASE_URL at an
existing OpenAI compatible server.
The native helper is installed in
~/Library/Application Support/Orbis/bin/OrbisSpeech.app. Rebuild it with
./native/build.sh after changing native/speech-helper.swift.
Apple voices work without any download. The other engines appear in Settings when their files are present:
| Engine | Location |
|---|---|
| Piper | data/voices/piper/*.onnx with the matching *.onnx.json |
| Kokoro | data/voices/kokoro/kokoro-v1.0.onnx and voices-v1.0.bin |
| Supertonic | ~/.cache/supertonic3, enabled with uv sync --extra supertonic |
| Voicebox | A local Voicebox service on http://127.0.0.1:17493 |
Piper works well for French with fr_FR-siwis-medium and
fr_FR-tom-medium. Kokoro exposes ff_siwis.
Settings are edited in the interface and stored in data/settings.json. The
file is written with mode 0600. The DeepSeek key is never returned by the
settings API: the page only learns whether a key is set.
Useful environment variables:
| Variable | Default | Role |
|---|---|---|
ORBIS_HOST |
127.0.0.1 |
Server bind address |
ORBIS_PORT |
8765 |
Server port |
ORBIS_LANGUAGE |
fr |
Interface language, fr or en |
ORBIS_STT_LOCALE |
fr-FR |
Speech recognition locale |
ORBIS_LLM_PROVIDER |
local |
local or deepseek |
ORBIS_LLM_MODEL |
mlx-community/gemma-4-e4b-it-4bit |
MLX model identifier |
ORBIS_LLM_BASE_URL |
empty | Existing OpenAI compatible endpoint |
ORBIS_LLM_PORT |
8080 |
Managed mlx_lm.server port |
ORBIS_DEEPSEEK_API_KEY |
empty | DeepSeek key, instead of the settings file |
ORBIS_TTS_ENGINE |
apple |
Default synthesis engine |
ORBIS_TTS_VOICE |
empty | Default voice identifier |
ORBIS_SPEECH_HELPER |
auto | Path to the native speech helper |
ORBIS_VOICEBOX_URL |
http://127.0.0.1:17493 |
Voicebox service |
ORBIS_SUPERTONIC_DIR |
~/.cache/supertonic3 |
Supertonic model directory |
uv run pytest
uv run ruff check backend tests scripts tools/wake
./scripts/check_style.shThe JavaScript is native modules, with no build step:
for file in $(git ls-files 'web/js/*.js'); do node --check "$file"; doneThe wake model has its own training pipeline and corpus notes in
tools/wake/README.md. It uses openWakeWord feature
models and a classifier trained locally on synthesized French voices.
- The speech helper currently targets macOS 27 and newer. The browser page is portable, but recognition depends on this helper.
- The wake classifier is trained on synthetic voices. Recall drops on a voice far from the corpus, and false triggers depend on ambient noise. Speech recognition confirms every acoustic hit before Orbis answers.
- Local Gemma needs Apple silicon. Cloud providers remain optional and explicit.
- Piper and Kokoro French coverage is limited to the voices listed above.
Orbis is released under the MIT license. See LICENSE.
The openWakeWord feature models are copyright 2022 David Scripka and are
distributed under Apache 2.0. See
backend/orbis/models/wake/NOTICE and
LICENSE-APACHE-2.0.
Orbis est une interface web servie par un petit serveur FastAPI. On prononce son nom, on pose une question à voix haute, et il répond avec une voix. Le détecteur de mot d'éveil, la reconnaissance vocale et le modèle de langage par défaut tournent sur le Mac. Aucun audio ne quitte la machine. Quand un fournisseur distant est choisi, seul le texte transcrit lui est envoyé.
Le personnage à gauche fait partie de l'interface. Il cligne des yeux, regarde autour de lui, respire, s'endort quand rien ne se passe et ne bouge la bouche que pendant qu'Orbis parle.
| Domaine | Détail |
|---|---|
| Mot d'éveil | Un classifieur ONNX local détecte « Orbis » et les prononciations proches. La reconnaissance vocale confirme le réveil avant la réponse. |
| Conversation | Appui pour parler, écoute continue, relance sans répéter le nom et interruption vocale pendant la réponse. |
| Reconnaissance | Apple SpeechAnalyzer par un petit helper Swift, en flux binaire. |
| Modèle de langage | Gemma 4 E4B 4 bits via MLX par défaut. DeepSeek ou un autre point d'accès compatible OpenAI reste possible. |
| Synthèse | Voix Apple par défaut. Piper, Kokoro, Supertonic et les profils Voicebox apparaissent quand ils sont installés. |
| Interface | Français et anglais, mise en page adaptative, PWA installable, CSP stricte, sans script ni style en ligne. |
| Vie privée | Aucune télémétrie. Réglages, journaux, audio temporaire et voix restent dans data/, ignoré par git. |
Le navigateur envoie le micro en PCM mono 16 kHz par trames de 20 ms. Le serveur détecte le mot d'éveil, transcrit avec SpeechAnalyzer, interroge Gemma ou DeepSeek, synthétise la réponse puis la renvoie au navigateur.
La fenêtre de relance s'ouvre quand le navigateur signale la fin de la lecture, pas à la fin de la génération. Une réponse longue ne consomme donc pas la fenêtre avant que la question finale soit entendue.
- macOS 27 ou plus récent, avec les outils de ligne de commande Xcode. Le helper vocal utilise le cadre SpeechAnalyzer et se compile avec le SDK installé.
- Python 3.12 et uv.
- Une puce Apple silicon pour Gemma en local via MLX. Sur Intel, utiliser DeepSeek ou un autre point d'accès compatible OpenAI.
- Environ 6 Go d'espace libre pour le modèle Gemma par défaut et les voix optionnelles.
- Les autorisations microphone et reconnaissance vocale, demandées au premier usage.
- Windows et Linux ne sont pas pris en charge pour le pipeline vocal.
SpeechAnalyzer et le helper Swift sont propres à macOS. Un lanceur
.cmddémarrerait le serveur sans reconnaissance fonctionnelle, donc le projet n'en fournit pas.
git clone https://github.com/infinition/orbis.git
cd orbis
./scripts/start.shLe script installe les dépendances Python, compile le helper Swift s'il manque
ou s'il est plus ancien que sa source, démarre le serveur et ouvre
http://127.0.0.1:8765. ORBIS_NO_BROWSER=1 désactive le navigateur.
ORBIS_HOST et ORBIS_PORT changent l'adresse d'écoute.
Les mêmes étapes peuvent être lancées séparément :
uv sync --extra dev
./native/build.sh
./scripts/dev.shscripts/run.sh lance le serveur sans rechargement automatique.
Le premier tour vocal télécharge le modèle Gemma par défaut avec mlx-lm. Les
tours suivants réutilisent la copie locale. Pour éviter le téléchargement,
ouvrir les réglages, choisir DeepSeek et coller une clé, ou pointer
ORBIS_LLM_BASE_URL vers un serveur compatible OpenAI déjà lancé.
Le helper natif est installé dans
~/Library/Application Support/Orbis/bin/OrbisSpeech.app. Le reconstruire avec
./native/build.sh après une modification de native/speech-helper.swift.
Les voix Apple fonctionnent sans téléchargement. Les autres moteurs apparaissent dans les réglages quand leurs fichiers sont présents :
| Moteur | Emplacement |
|---|---|
| Piper | data/voices/piper/*.onnx avec le fichier *.onnx.json correspondant |
| Kokoro | data/voices/kokoro/kokoro-v1.0.onnx et voices-v1.0.bin |
| Supertonic | ~/.cache/supertonic3, activé avec uv sync --extra supertonic |
| Voicebox | Un service Voicebox local sur http://127.0.0.1:17493 |
Pour le français, Piper fonctionne bien avec fr_FR-siwis-medium et
fr_FR-tom-medium. Kokoro expose ff_siwis.
Les réglages s'éditent dans l'interface et sont enregistrés dans
data/settings.json, avec le mode 0600. La clé DeepSeek n'est jamais renvoyée
par l'API de réglages : la page apprend seulement si une clé est présente.
Variables d'environnement utiles :
| Variable | Valeur par défaut | Rôle |
|---|---|---|
ORBIS_HOST |
127.0.0.1 |
Adresse d'écoute du serveur |
ORBIS_PORT |
8765 |
Port du serveur |
ORBIS_LANGUAGE |
fr |
Langue de l'interface, fr ou en |
ORBIS_STT_LOCALE |
fr-FR |
Locale de reconnaissance vocale |
ORBIS_LLM_PROVIDER |
local |
local ou deepseek |
ORBIS_LLM_MODEL |
mlx-community/gemma-4-e4b-it-4bit |
Identifiant du modèle MLX |
ORBIS_LLM_BASE_URL |
vide | Point d'accès compatible OpenAI déjà lancé |
ORBIS_LLM_PORT |
8080 |
Port du serveur mlx_lm.server géré |
ORBIS_DEEPSEEK_API_KEY |
vide | Clé DeepSeek, au lieu du fichier de réglages |
ORBIS_TTS_ENGINE |
apple |
Moteur de synthèse par défaut |
ORBIS_TTS_VOICE |
vide | Identifiant de voix par défaut |
ORBIS_SPEECH_HELPER |
auto | Chemin du helper vocal natif |
ORBIS_VOICEBOX_URL |
http://127.0.0.1:17493 |
Service Voicebox |
ORBIS_SUPERTONIC_DIR |
~/.cache/supertonic3 |
Dossier des modèles Supertonic |
uv run pytest
uv run ruff check backend tests scripts tools/wake
./scripts/check_style.shLe JavaScript utilise des modules natifs, sans étape de compilation :
for file in $(git ls-files 'web/js/*.js'); do node --check "$file"; doneLe mot d'éveil possède son propre pipeline d'entraînement et ses notes de
corpus dans tools/wake/README.md. Il utilise les
modèles de traits openWakeWord et un classifieur entraîné localement sur des
voix françaises synthétisées.
- Le helper vocal cible macOS 27 et plus récent. La page web est portable, mais la reconnaissance dépend de ce helper.
- Le classifieur de mot d'éveil est entraîné sur des voix synthétiques. Le rappel baisse sur une voix éloignée du corpus, et les faux réveils dépendent du bruit ambiant. La reconnaissance vocale confirme chaque réveil acoustique avant la réponse.
- Gemma local demande une puce Apple silicon. Les fournisseurs distants restent optionnels et explicites.
- La couverture française de Piper et Kokoro se limite aux voix citées plus haut.
Orbis est distribué sous licence MIT. Voir LICENSE.
Les modèles de traits openWakeWord sont copyright 2022 David Scripka et
distribués sous Apache 2.0. Voir
backend/orbis/models/wake/NOTICE et
LICENSE-APACHE-2.0.
