Sign in

piper

2.5.4-ls15

Piper is a fast, local neural text to speech system that sounds great and is optimized for the Raspberry Pi 4. This container provides a Wyoming protocol server for Piper.

docker pull ghcr.io/linuxserver-playground/piper:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
The Piper voice (opens in a new tab) to use, in the format <language>-<name>-<quality>
Local path for piper config files.
Wyoming connection port.
Optional settings7

Tick what you need; it is added to every output with its value.

Mods

0 for piper, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  piper:
    image: ghcr.io/linuxserver-playground/piper:latest
    container_name: piper
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PIPER_VOICE=en_US-lessac-medium
    volumes:
      - /path/to/piper/data:/config
    ports:
      - 10200:10200
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch main · stable2.5.4-ls15amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/piper:2.5.4-ls15

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-ubuntu:resolute
Upstream version
2.5.4
amd64 compressed
161 MB · 10 layers
arm64 compressed
157 MB · 10 layers
amd64 packages
228 · Ubuntu 26.04.1 LTS
arm64 packages
228 · Ubuntu 26.04.1 LTS
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

piper on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
main → :latestsuccess
2.5.4
? unknown––

Application setup#

For use with Home Assistant Assist, add the Wyoming integration and supply the hostname/IP and port that piper is running add-on.”

For more information see the wyoming piper docs,

Parameters#

Ports#
PortFunctionRequired
10200:10200Wyoming connection port.required
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
PIPER_VOICE=en_US-lessac-mediumThe Piper voice (opens in a new tab) to use, in the format <language>-<name>-<quality>required
LOCAL_ONLY=If set to true, or any other value, the container will not attempt to download models from HuggingFace and will only use locally-provided models.optional
PIPER_LENGTH=1.0Voice speaking rate, 1.0 is default with < 1.0 being faster and > 1.0 being slower.optional
PIPER_NOISE=0.667Controls the variability of the voice by adding noise. Values above 1 will start to degrade audio.optional
PIPER_NOISEW=0.333Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses.optional
PIPER_SPEAKER=0Speaker number to use if the voice supports multiple speakers.optional
NO_STREAMING=Setting to true, or any other value, will disable support for streaming audio on sentence boundaries.optional
Volumes#
PathFunctionRequired
/configLocal path for piper config files.required

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull piper
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d piper
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/piper:latest
  • Stop the running container:

    docker stop piper
  • Delete the container:

    docker rm piper
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-piper.git
cd docker-piper
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/piper:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 10 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
2.5.4-ls15main · f944173cweekly package checkbasesuccess161 MB amd64157 MB arm64
2.5.4-ls14main · eee94d07weekly package checkpackagessuccess170 MB amd64165 MB arm64
2.5.4-ls13main · 044b717bweekly package checkpackagessuccess170 MB amd64165 MB arm64
2.5.4-ls12main · 32f8031dupstream checkmixedsuccess170 MB amd64165 MB arm64
2.5.3-ls11main · 55d1b698weekly package checkbasesuccess170 MB amd64165 MB arm64
Older releases10Release, run record and run on GitHub
Older releases of piper, without a page on this site
TagBuiltLinks
2.5.3-ls10mainRelease 2.5.3-ls10 on GitHub (opens in a new tab)run.json of 2.5.3-ls10Run that built 2.5.3-ls10, on GitHub (opens in a new tab)
2.5.3-ls9mainRelease 2.5.3-ls9 on GitHub (opens in a new tab)run.json of 2.5.3-ls9Run that built 2.5.3-ls9, on GitHub (opens in a new tab)
2.5.2-ls8mainRelease 2.5.2-ls8 on GitHub (opens in a new tab)run.json of 2.5.2-ls8Run that built 2.5.2-ls8, on GitHub (opens in a new tab)
2.5.2-ls7mainRelease 2.5.2-ls7 on GitHub (opens in a new tab)run.json of 2.5.2-ls7Run that built 2.5.2-ls7, on GitHub (opens in a new tab)
2.5.2-ls6mainRelease 2.5.2-ls6 on GitHub (opens in a new tab)run.json of 2.5.2-ls6Run that built 2.5.2-ls6, on GitHub (opens in a new tab)
2.5.2-ls5mainRelease 2.5.2-ls5 on GitHub (opens in a new tab)run.json of 2.5.2-ls5Run that built 2.5.2-ls5, on GitHub (opens in a new tab)
2.5.2-ls4mainRelease 2.5.2-ls4 on GitHub (opens in a new tab)run.json of 2.5.2-ls4Run that built 2.5.2-ls4, on GitHub (opens in a new tab)
2.5.2-ls3mainRelease 2.5.2-ls3 on GitHub (opens in a new tab)run.json of 2.5.2-ls3Run that built 2.5.2-ls3, on GitHub (opens in a new tab)
2.5.2-ls2mainRelease 2.5.2-ls2 on GitHub (opens in a new tab)run.json of 2.5.2-ls2Run that built 2.5.2-ls2, on GitHub (opens in a new tab)
2.5.2-ls1mainRelease 2.5.2-ls1 on GitHub (opens in a new tab)run.json of 2.5.2-ls1Run that built 2.5.2-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for piper

No mod targets piper specifically; the 13 universal mods work with every image.

Changelog#

  1. Rebase to Ubuntu Resolute.

  2. Add support for local only mode.

  3. Add streaming support.

  4. Rebase to Ubuntu Noble.

  5. Initial Release.

Support#

Questions about running piper? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it piper /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f piper
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' piper
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/piper:latest

Community project

Improve piper

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the piper image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the piper image, test it and draft the PR.
  • Make a mod for piper that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

faster-whisper

v3.9.1-ls13

Faster-whisper is a reimplementation of OpenAI's Whisper model using CTranslate2, which is a fast inference engine for Transformer models. This container provides a Wyoming protocol server for faster-whisper.

0 GitHub starsubuntuarm64