Watch
1
0
Fork
You've already forked utterline
0
No description
  • Rust 45.6%
  • Go 30.6%
  • HTML 23.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 21:26:24 +01:00
server Improve refinement and allow retrying notes 2026-11-26 21:26:24 +01:00
windows Use waveform icon across vault and Windows app 2026-11-26 18:53:35 +01:00
.env.example Build initial voice notes prototype 2026-11-26 14:30:50 +01:00
.gitignore Replace vault with Go server and direct connections 2026-11-26 18:10:19 +01:00
README.md Improve refinement and allow retrying notes 2026-11-26 21:26:24 +01:00

Utterline

A private voice inbox: record a thought at your Windows PC and find the transcription in your own vault. The native Windows listener detects Hey Jarvis locally or records when you press a button. The Go server saves recordings durably, sends them to a configurable speech-to-text endpoint, and serves a browser vault. The listener, vault, and model can run on one computer or on separate computers.

This is an early prototype, not yet an installer or production deployment.

Set up the server

You need Go 1.23 or later to build the server, plus an OpenAI-compatible speech-to-text endpoint such as Speaches. The server is a single binary with an embedded browser interface and pure-Go SQLite; it does not require Python or a separate database server.

From the repository, build and run on Linux or macOS:

cd server
go build -o utterline-server .
export UTTERLINE_TOKEN='replace-with-a-long-random-secret'
./utterline-server

Or on Windows in PowerShell:

cd server
go build -o utterline-server.exe .
$env:UTTERLINE_TOKEN = 'replace-with-a-long-random-secret'
.\utterline-server.exe

Keep the process running. Open http://127.0.0.1:8765 on that computer and enter the token. The default model endpoint is http://127.0.0.1:8000/v1/audio/transcriptions, using Systran/faster-whisper-small.

To connect from another computer, set UTTERLINE_HOST to an address on the server's network interface, or 0.0.0.0 to listen on all IPv4 interfaces, before starting it. Allow the port through the server's firewall if needed. Enter http://server-address:8765 and the token in the Windows app. To move the speech model to another machine, set UTTERLINE_STT_URL to its full transcription endpoint URL; the vault and model are configured independently.

For example, to start a CPU-based Speaches instance on the same host with Podman or Docker, and download the default model:

podman run -d --name utterline-speech -p 127.0.0.1:8000:8000 -v utterline-models:/home/ubuntu/.cache/huggingface/hub ghcr.io/speaches-ai/speaches:latest-cpu
curl -X POST http://127.0.0.1:8000/v1/models/Systran/faster-whisper-small

On Windows use curl.exe instead of curl, or use Docker in place of Podman. Downloads can take time. See Speaches installation for GPU and other configurations.

Server settings

Environment variable Default Purpose
UTTERLINE_TOKEN required Shared private token for the app and vault.
UTTERLINE_HOST 127.0.0.1 Interface to listen on.
UTTERLINE_PORT 8765 Listening port.
UTTERLINE_DB data/utterline.sqlite3 SQLite vault file.
UTTERLINE_STT_URL http://127.0.0.1:8000/v1/audio/transcriptions OpenAI-compatible transcription endpoint.
UTTERLINE_STT_MODEL Systran/faster-whisper-small Model name sent to the endpoint.
UTTERLINE_STT_TOKEN empty Optional bearer token for the transcription endpoint.
UTTERLINE_LANGUAGE empty Optional language code, e.g. en or no.
UTTERLINE_LLM_URL empty Optional OpenAI-compatible chat completions URL for note refinement, for example http://127.0.0.1:11434/v1/chat/completions.
UTTERLINE_LLM_MODEL empty Model name for refinement; set together with UTTERLINE_LLM_URL.
UTTERLINE_LLM_TOKEN empty Optional bearer token for the refinement endpoint.
UTTERLINE_TLS_CERT, UTTERLINE_TLS_KEY empty Optional PEM certificate and private key for HTTPS; set both.

HTTP sends the token and recordings unencrypted. Use a trusted private network, or configure HTTPS directly using the TLS settings or a reverse proxy with a trusted certificate. Secure the speech endpoint separately if it is on another host. The vault token is stored in plain text in the Windows user's local app data; protect the server database, configuration and backups as sensitive data.

Windows app

Install Rust and the MSVC build tools, then from the repository run:

cargo run --release --manifest-path windows/Cargo.toml

Enter the server address and server token, and select Test connection. For a server on the same PC, use http://127.0.0.1:8765; for another computer, use its reachable address and the server's configured port. The app accepts HTTP or HTTPS addresses. An address without a scheme defaults to HTTP.

Select Record a note, wait for the high tone, and speak; silence finishes the recording and a lower tone marks the end. Alternatively select Start listening, say Hey Jarvis, and speak after the high tone. Listening is silent, and recording starts at the cue, so the wake phrase and earlier speech are not included. If no speech is detected, the recording is discarded. Click Open vault and enter the same token in the browser to see the transcription. Closing the window hides it in the tray; use the tray menu to quit.

Recording cues play through the Windows default audio output and follow its volume. Adjust Cue volume in the app and use Test sound to preview it; it starts at 15%, is saved automatically, and 0% mutes the cues. If Windows cannot play a cue, the app reports that sound is unavailable.

Completed recordings are kept in %LOCALAPPDATA%\Utterline\pending until the server durably accepts them. Each recording has a stable ID, so upload retries do not create duplicates. The server keeps audio until transcription succeeds and retries failures. After success it removes audio from the active database and keeps the original transcript separately from edits. Deletion does not guarantee secure erasure from storage or backups. Back up SQLite with its backup API or while the server is stopped; a live WAL database may have additional files.

When an LLM endpoint is configured, the server separately queues completed transcripts for a suggested title and cleaned-up text, including existing notes. Refinement retries independently if the model is unavailable. Original transcripts and your title/text edits remain separate; the vault can show or restore the original, and Refine again reprocesses the original transcript without replacing your edits. Review model output for meaning changes. The endpoint can run locally or remotely; protect remote requests with HTTPS or a trusted network.

A power loss or forced termination before a recording reaches the local queue can lose the unfinished recording. Test your microphone and transcription quality on your own setup.

The included openWakeWord model has a CC BY-NC-SA 4.0 license, separate from the library's code license. Review model and dependency licenses before redistribution or commercial use; see openWakeWord's license notes. No project license has been selected yet.

Tests

(cd server && go test ./...)
cargo test --manifest-path windows/Cargo.toml

The server tests exercise the API, durable storage and transcription retry with a fake endpoint. Real microphone capture and Windows tray behavior still need a Windows test.