A hands-free voice assistant — speak to it, it answers out loud. Built for moments when your hands are busy (e.g. driving). Miles reuses docent's model pipeline — NCSA Lumen for speech-to-text and chat, ElevenLabs for the spoken voice — but is its own small app, not a docent domain.
First capability: a documents/ folder of files you can ask Miles to read aloud.
Say "read me the welcome document" (or tap a document) and Miles reads it.
mic → /transcribe (Lumen STT) → /ask (Lumen chat) → spoken reply (ElevenLabs TTS)
│
└─ "read a document" → documents/ → read aloud
server.py— Flask app:/transcribe,/ask,/speak,/documents,/document/read. The/askturn lets the model either answer briefly or, when you ask to read a document, emit a small action the server resolves to the file's text.web/index.html— the voice UI: one big tap-to-talk button that records until you pause, shows the transcript and reply, auto-plays the answer, and lists your documents (tap one to read). A Stop button halts playback.documents/— your files (.txt,.md,.pdf,.docx). Add your own; they're gitignored (only the samplewelcome.mdis tracked).
source setup.sh # loads keys from *_key.txt, makes/activates .venv, installs depsKeys (gitignored *_key.txt, copied from docent, or set the env vars):
LUMEN_API_KEY (chat + STT) and ELEVENLABS_API_KEY (spoken replies).
./server.py # https://127.0.0.1:5005 (self-signed cert; accept the warning)
MILES_HTTP=1 ./server.py # plain http, e.g. behind your own TLS/reverse proxyOpen the URL and allow microphone access. HTTPS (or localhost) is required — the browser only grants the mic in a secure context, which is why the local server self-signs a cert on first run.
| Variable | Purpose | Default |
|---|---|---|
LUMEN_API_KEY |
model API key (else lumen_key.txt) |
— |
ELEVENLABS_API_KEY |
TTS key (else elevenlabs_key.txt) |
— |
MILES_CHAT_MODEL |
chat model id | glm-5.3 |
MILES_HOST / MILES_PORT |
bind address / port | 127.0.0.1 / 5005 |
MILES_HTTP |
serve plain HTTP instead of HTTPS | off |
- Auto-listen again after a reply (true back-and-forth, no tapping).
- "Summarize" a document instead of reading it in full.
- More skills: navigation prompts, reminders, messages — each a small action like the document reader.