A self-hosted speech server without PyTorch: speech-to-text, text-to-speech, diarization and voice agents (OpenAI audio and Realtime APIs, phone calls, Wyoming), with a model catalog, optional cloud providers and a web console.
pip install bolo-speech Copy PIP instructions
bolo is a speech server you run yourself: it pulls speech models by name and serves speech-to-text, text-to-speech, speaker diarization and whole voice agents over the APIs your clients already use. It speaks the OpenAI audio and Realtime APIs, the speaches routes and the Wyoming protocol; runs a catalog of a few hundred models on ONNX Runtime and CTranslate2 without PyTorch; puts cloud speech APIs behind the same routes when you want them; answers phone calls; and traces every request phase by phase. One Python process, CPU first, Apache-2.0.
The demo runs speech recognition entirely in your browser with WebAssembly: no install, no upload.
The speech-to-text playground, live against a real server on a 4-core CPU. Lighter text is still changing; solid text is final.
Status: alpha. Developed and measured on Linux x86-64, CPU only. GPUs, Apple Silicon, arm64 and Windows are untested; the phone and cloud integrations have not met a real account. What has not been validated says so plainly.
uv tool install 'bolo-speech[all]' # with uv (https://docs.astral.sh/uv/) bolo serve Run it once without installing: uvx --from 'bolo-speech[all]' bolo serve. Without uv: pipx install 'bolo-speech[all]', or pip install 'bolo-speech[all]' into a virtual environment. With Homebrew (macOS 14 or later, Linux): brew install cb-sigma/tap/bolo, then brew services start bolo to run it in the background (console at http://127.0.0.1:8000/). It installs all; the tap's README shows how to add the opt-in extras. As a container (CPU image): docker run -p 8000:8000 -v bolo-data:/data ghcr.io/cb-sigma/bolo:latest. Compose, systemd and Kubernetes examples, and what was run of each: deploy/README.md. The PyPI distribution is bolo-speech; the command and the Python package are bolo. Python 3.10 or newer.
The base install has no engine at all; extras add what you want. all is sherpa (most models), faster-whisper, uccharan (phonemes and text normalisation), av (M4A/WebM/AAC through bundled FFmpeg) and wyoming. Opt-in extras: webrtc, turn (end-of-turn model), orpheus, s2s (in-process speech-to-speech), sip, moonshine, whispercpp, and espeak (eSpeak NG, GPL-3.0-or-later, never part of all; see Licences).
Open http://127.0.0.1:8000 for the console, or use the API. The first request for a model downloads it:
# speech to text (pulls whisper-base, about 160 MB, the first time) curl http://127.0.0.1:8000/v1/audio/transcriptions -F file=@recording.wav -F model=whisper-1 # text to speech (pulls kokoro-v1.0-int8, about 170 MB, the first time) curl http://127.0.0.1:8000/v1/audio/speech -H 'Content-Type: application/json' \ -d '{"model": "tts-1", "voice": "af_heart", "input": "Hello from bolo."}' -o hello.mp3 With the official OpenAI SDK, only the base URL changes:
from openai import OpenAI client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="not-needed") text = client.audio.transcriptions.create(model="whisper-1", file=open("recording.wav", "rb")).text client.audio.speech.create(model="tts-1", voice="alloy", input=text).write_to_file("echo.mp3") Or choose models yourself:
bolo recommend # which models suit this machine (advice only: nothing is restricted) bolo list --all -q english # browse the catalog bolo pull moonshine-tiny-en # 124 MB, the fastest English recogniser here bolo transcribe recording.wav -m moonshine-tiny-en bolo speak "Hello there." -o hello.wav -m kokoro-v1.0-int8 --voice af_heart bolo ps # what a running server has in memory: size, CPU/GPU, time until unload bolo show kokoro-v1.0-int8 # licence, files, settings, voices, speed (`bolo list`, `rm`, `cp` as in Ollama) bolo logs -f # the server's log file, when it writes one (log_file) bolo doctor # engines, codecs, components, this machine, where the logs are For a voice agent, point bolo at any OpenAI-compatible language model and connect a Realtime client to ws://127.0.0.1:8000/v1/realtime (or open the console's Conversation page):
bolo serve --llm-base-url http://127.0.0.1:11434/v1 --llm-model llama3.2 # Ollama, for example More clients (curl, Python, Node, WebSockets, Pipecat, LiveKit Agents, Wyoming): examples/.
342 models in the catalog, 120 validated on CPU, 222 untested, plus 20 cloud models (paid cloud APIs; audio leaves this server; docs/providers.md). Full list: docs/models.md.
"Validated on CPU" means downloaded and run by server/tools/validate_models.py on the machine described under Performance; everything else says untested. The full table, with each model's licence and measured real-time factor, is docs/models.md. Anything else that sherpa-onnx or faster-whisper can load is added with bolo pull hf: / .
Licences are labelled, not filtered. Every entry states license, commercial_use and gated, the console shows them, and you decide what to download. Non-commercial models (MMS-TTS, some Piper voices, non-English Moonshine, several LLM-based voices) and models with conditional terms are in the catalog and marked ⚠. The default models are permissively licensed; the one exception is the opt-in speech-to-speech pipeline, whose default model (LFM3-Audio, LFM Open License) allows commercial use only below a revenue threshold. Gated models are fetched only with your own Hugging Face token. Cloud models are labelled as paid APIs that receive your audio. How each restricted model runs: docs/models.md.
No PyTorch in the server. Inference runs on ONNX Runtime (through sherpa-onnx and directly) and CTranslate2 (through faster-whisper); LLM-based voices run on llama.cpp's llama-server or audio.cpp, which bolo can install and start. Models that need PyTorch run in the separate bolo-torch process. bolo runs no text language model itself: voice agents use the one you connect.
bolo recommend # this machine, and a default pick per task bolo recommend --task stt --language hi # every Hindi recogniser, best fit first bolo recommend --use live --language en # a whole setup: speech-to-text + text-to-speech bolo recommend --benchmark # measure this machine first (about three seconds) bolo detects the CPU and its instruction sets, memory, GPUs, the runtimes that can use them and container limits, and rates every model comfortable, usable, slow or unlikely to fit, with the expected real-time factor and the reason. The same is on the console's Models page ("This machine", a fit line per model, "Pick for me") and in bolo list.
It recommends; it never restricts. No model is hidden, refused or blocked because of hardware; pulling or loading one that is unlikely to fit only adds a notice.
The estimates are rough and say so: the catalog's real-time factors were measured on one reference machine and are scaled to yours by a three-second benchmark, or by a rule of thumb when it has not run; about two thirds of the catalog was never run by the maintainers and is estimated from a similar model or marked as a guess; nothing was measured on a GPU. docs/recommendations.md.
bolo is the speech side of a voice agent: you bring a language model (Ollama, llama.cpp, vLLM, a hosted API), bolo hears, detects the end of the turn, speaks the answer as the tokens arrive and stops when the caller interrupts. Clients connect with the OpenAI Realtime API over WebSocket or WebRTC, with audio in chat completions, or by phone. It was run from the official OpenAI SDK, Pipecat and LiveKit Agents.
On a phone line the same session answers calls from Twilio, Plivo, Telnyx or Exotel, or from a SIP trunk (experimental: G.711 over UDP, no registration, authentication or encryption). bolo telephony simulate rings an agent through a fake provider and reports what the caller heard and how long each turn took, without a phone account.
Two things to know before relying on it: the quality of a conversation is the quality of the language model you connect (bolo was developed with models of 360M and 500M parameters, enough to prove the path and no more), and no real phone call has been made with this code. docs/voice-agents.md, docs/telephony.md.
Voices differ in what they read: phonemes, plain text or a fixed character set. bolo keeps a record per voice and prepares text accordingly:
These are small samples that show the pipelines work, not accuracy benchmarks, and nobody who speaks the languages reviewed the synthesised audio. The table per language, with licences: docs/indic-telephony.md.
Served at / by the same process, and as a browser-only live demo.
Screenshots of the real console on a 4-core CPU with no GPU; docs/assets/README.md says what each was taken against. The screenshots predate the Conversation, Compare, Providers, Phone and Word lists pages.
Full reference: docs/api.md and docs/openapi.json. How bolo compares with speaches, LocalAI, vLLM-Omni, WhisperLiveKit, Kokoro-FastAPI and the sherpa-onnx servers, and when to choose them instead: docs/comparison.md.
Measured with bolo's own load generator on 4 vCPUs of an Intel Xeon at 2.1 GHz, 15 GB RAM, no GPU, a shared cloud VM that was running other workloads at the same time. A few of the numbers, each with its condition:
All tables, the method and what batching does and does not buy on CPU: docs/performance.md. Raw results: docs/measurements/.
The full list, with what was run of each: docs/status.md.
bolo itself is Apache-2.0. It contains no third-party source code; NOTICE lists what it works with.
Issues and pull requests are welcome, especially measurements on hardware we do not have, reports from real phone and cloud accounts, and new catalog entries: CONTRIBUTING.md explains the setup and how to add and validate a model. Please read the Code of Conduct; report security problems as described in SECURITY.md.
all av dev espeak faster-whisper kokoro-onnx moonshine nvidia onnx-split orpheus s2s sherpa sip text turn uccharan webrtc whispercpp wyoming
asr diarization hindi indic onnx openai openai-compatible realtime self-hosted sip speech speech-to-text stt telephony text-to-speech tts vad voice-agent whisper wyoming
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




