piper

2.5.2-ls134

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 lscr.io/linuxserver/piper:latest

Quick start

Generated from the image's own configuration. Replace the /path/to folders with real paths on your host.

---
services:
  piper:
    image: lscr.io/linuxserver/piper:latest
    container_name: piper
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PIPER_VOICE=en_US-lessac-medium
      - LOCAL_ONLY= # optional
      - PIPER_LENGTH=1.0 # optional
      - PIPER_NOISE=0.667 # optional
      - PIPER_NOISEW=0.333 # optional
      - PIPER_SPEAKER=0 # optional
      - NO_STREAMING= # optional
    volumes:
      - /path/to/piper/data:/config
    ports:
      - 10200:10200
    restart: unless-stopped

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](https://huggingface.co/rhasspy/piper-voices/tree/main) 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

Architectures

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

  • x86_64amd64-latest
  • arm64arm64v8-latest

Tags

  • :latestStable releases
  • :gpuReleases with Nvidia GPU support (amd64 only)

Changelog

  1. Rebase to Ubuntu Resolute.

  2. Add support for local only mode.

  3. Add streaming support.

Related

Browse all

faster-whisper

v3.8.1-ls10

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.

313K pulls per month233 GitHub starsarm64