Skip to main content

Wyoming Piper

Wyoming protocol server for the Piper text to speech system.

Home Assistant Add-on

Show add-on

Source

Local Install

Requires Python 3.10 or later.

Clone the repository and set up Python virtual environment:

git clone https://github.com/rhasspy/wyoming-piper.git
cd wyoming-piper
script/setup

Run a Wyoming server that Home Assistant can connect to:

script/run --voice en_US-lessac-medium --uri 'tcp://0.0.0.0:10200' --data-dir /data --download-dir /data 

For a demo web server, make sure to install the http dependencies first:

script/setup --http

Then run in a separate terminal:

script/run_http --uri 'tcp://localhost:10200'

and visit http://localhost:5000 to test.

OmniVoice backend (experimental)

An alternative OmniVoice backend is available, running a block-wise int4 ONNX export under onnxruntime. Install the extra dependencies and select it with --backend omnivoice:

script/setup --omnivoice
script/run --backend omnivoice \
    --uri 'tcp://0.0.0.0:10200' --data-dir /data --download-dir /data \
    --omnivoice-ref-dir /data/omnivoice_voices --omnivoice-steps 32

Installing with pip takes two steps, because the omnivoice package requires gradio, librosa, webdataset and tensorboardx for its demo and training paths, which this backend never imports. Skipping them drops 42 packages and ~600 MB:

pip install 'wyoming-piper[omnivoice-deps]'
pip install --no-deps omnivoice

The omnivoice extra installs both in one step instead, at that extra ~600 MB.

Voices. Point --omnivoice-ref-dir at a directory of voices organized as <language>/<voice_name>/, for example:

omnivoice_voices/
  en_US/
    lessac/{ref.wav, ref.txt}
    ryan/{ref.wav, ref.txt}
    narrator/{instruct.txt}
  de_DE/
    thorsten/{ref.wav, ref.txt}

Each voice directory is one of two kinds:

  • Cloning — ref.wav + ref.txt (the transcript of the recording); the voice is cloned from the reference audio.
  • Voice design — instruct.txt; its text is a style instruction (e.g. male, deep, slow) describing the voice to generate, with no reference audio. See voice design for valid attributes. Only used when the directory has no ref.wav/ref.txt.

A default voice is also advertised; requesting it (or an empty/unknown voice name) uses OmniVoice's built-in speaker for the requested language.

OmniVoice lists 646 language codes, most of them ISO 639-3 only. Advertising all of them buries the usable ones in Home Assistant's language picker, so default is advertised for the ~128 that have an ISO 639-1 (two-letter) tag, plus Cantonese, Standard Arabic and Odia. This limits only what is advertised — --omnivoice-language and a per-request language still accept any code OmniVoice knows, so the rest stay reachable.

On first use, each reference is encoded and cached next to ref.wav as ref.rvq (regenerated whenever ref.wav is newer), so the reference isn't re-encoded on every request.

The model is a block-wise int4 ONNX graph (see script/quantize_omnivoice.py to reproduce it). If omnivoice.int4.onnx (and its .data) are found in a --data-dir, that copy is used; otherwise it is downloaded into --download-dir (used as the HuggingFace cache) from the repo set by --omnivoice-onnx-repo. Use --local-files-only to run fully offline once the model is cached, and --omnivoice-steps to trade quality for speed — int4 stays clean down to ~10 steps. OmniVoice is compute-heavy and best suited to a desktop/server CPU rather than low-power devices.

Voice management web UI

A small Flask web UI can run alongside the Wyoming server to manage custom voices. It is designed to work as a Home Assistant add-on behind ingress. Install the extra dependency and enable it with --web-server:

script/setup --web
script/run --voice en_US-lessac-medium \
    --uri 'tcp://0.0.0.0:10200' --data-dir /data --download-dir /data \
    --web-server --web-server-port 5000

Then visit http://localhost:5000. The page has two sections:

  • Piper — upload and delete custom voices (a <voice>.onnx model plus its <voice>.onnx.json config) stored in --download-dir. Some metadata (dataset, language, quality, sample rate) is read from each config file.
  • OmniVoice — upload cloned voices (a reference WAV plus its required transcript) into --omnivoice-ref-dir/<language>/<voice_name>/, and delete a cloned voice's whole directory.

Each section shows a warning when its backend is not the one the server was started with (via --backend), but the UI keeps working. The server picks up added and removed voices on its own — no restart — but Home Assistant caches the voice list, so reload the Piper integration for a new voice to appear in it.

--web-server-host / --web-server-port set the bind address (default 127.0.0.1:5000). The UI has no authentication and can upload and delete files under --download-dir / --omnivoice-ref-dir, so only bind it to an address reachable from a network you trust.

Docker Image

docker run -it \
    -p 10200:10200 \
    -v /path/to/local/data:/data \
    rhasspy/wyoming-piper \
    --voice en_US-lessac-medium

OmniVoice ships as a separate omnivoice tag, because it pulls in torch and transformers. It is built for linux/amd64 only — OmniVoice needs a desktop/server CPU:

docker run -it \
    -p 10200:10200 \
    -v /path/to/local/data:/data \
    rhasspy/wyoming-piper:omnivoice \
    --backend omnivoice \
    --omnivoice-ref-dir /data/cloned-voices \
    --omnivoice-steps 10  # higher = better quality but slower

The voice management web UI is off by default. It has no authentication, so only enable it on a network you trust:

docker run -it \
    -p 10200:10200 -p 5000:5000 \
    -v /path/to/local/data:/data \
    rhasspy/wyoming-piper \
    --voice en_US-lessac-medium \
    --web-server --web-server-host 0.0.0.0

Source

Release files for wyoming-piper 2.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wyoming-piper 2.4.2
File Size Uploaded
wyoming_piper-2.4.2.tar.gz 74.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wyoming-piper 2.4.2
File Interpreter ABI Platform
wyoming_piper-2.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 143.8 kB

Release files / wyoming_piper-2.4.2.tar.gz

Download URL wyoming_piper-2.4.2.tar.gz
Size 74.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89235981c9cb0f572ad7cb6220ce85e6640d041fe6d352a54b18c74d3065b10e
BLAKE2b-256 checksum
How to use checksums
248eddd2d87e4751e754a73b2f9711903b0b8722e494d59003e7d8ac9f581196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release files / wyoming_piper-2.4.2-py3-none-any.whl

Download URL wyoming_piper-2.4.2-py3-none-any.whl
Size 69.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78ee540b3b675f5c1a34a10dfff3e3444b108eaa4b42346761280186e62731ed
BLAKE2b-256 checksum
How to use checksums
bb590277d35064a8b17a06bfe8b761a18c4bfde0a4de710304b61ea3fde4466a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release history Release notifications | RSS feed

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.3

2 release files

This release

2.4.2 This release

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.2

2 release files

1.6.3

2 release files

1.5.3

2 release files

1.4.0

1 release file

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page