Repository navigation
ambivox 1.0.0
The first stable release.
What docs/STABILITY.md lists stays compatible until 2.0: the signalling WebSocket, the HTTP endpoints, every option and environment variable, the metrics, the model and data directories, the C ABI, the Docker images and the installer.
Install with one command
Install Docker Desktop, open it once, then paste this into a terminal:
curl -fsSL https://raw.githubusercontent.com/whispem/ambivox/main/scripts/install.sh | bashIt checks that Docker runs, finds the computer's address on the network, downloads ambivox and its speech models, starts it and prints the address to open on any phone or computer of the same network. ~/ambivox/ambivox then starts, stops, shows the logs, takes a new address, updates and uninstalls.
Holds for an hour
make soak places calls one after another and fails if anything grows or drifts.
On an M5 Max, for an hour: 72 calls and 432 sentences, the server's heap at 3.8 MB at the start and at the end, 11 goroutines at the start and at the end, the engine at 18.5 MB to the kilobyte, the same time to the translated voice in the first and the last tenth, and nothing dropped.
Security review
- The engine's socket is created with mode 0600, and the server refuses a socket that another user owns or that is a symbolic link, so nobody else on the machine can stand in for the engine.
- At most twice
-max-roomsconnections may wait for theirjoin; the next ones get 503, counted inambivox_sessions_refused_total. - At most 10 wrong access keys a second are checked, from all clients together, and the server warns about a key shorter than 16 characters.
- The Content-Security-Policy keeps the page's WebSockets to its own host.
- Participant names lose control characters and bidirectional overrides.
make fuzzruns Go's fuzzer on the frame decoder and on names; the Rust decoder takes 200,000 random frames in its tests.- A new
auditworkflow runsgovulncheckandcargo auditon every push and every Monday.
Also
- Every
ambivox-mediaoption has an environment variable, and--backenddefaults tosussurrowhen the binary has it. - The C ABI is versioned (
AMBIVOX_ABI_VERSION, 1) andambivox_configcan grow without breaking. - The tests fail when an option, a variable, a metric or an endpoint and its documentation disagree.
Upgrading from 0.9
- With Docker: take the new
compose.yaml, or run the installer, which does it for you. The models from 0.9 are still the right ones. - Without Docker: run the server and the engine as the same user.
- C ABI: set
ambivox_config.sizetosizeof(ambivox_config); a config without it is refused.