diff --git a/.editorconfig b/.editorconfig old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md index 2163096..8bec235 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ services: - PIPER_NOISEW=0.333 #optional - PIPER_SPEAKER=0 #optional - PIPER_PROCS=1 #optional + - STREAMING= #optional volumes: - /path/to/piper/data:/config ports: @@ -110,6 +111,7 @@ docker run -d \ -e PIPER_NOISEW=0.333 `#optional` \ -e PIPER_SPEAKER=0 `#optional` \ -e PIPER_PROCS=1 `#optional` \ + -e STREAMING= `#optional` \ -p 10200:10200 \ -v /path/to/piper/data:/config \ --restart unless-stopped \ @@ -132,6 +134,7 @@ Containers are configured using parameters passed at runtime (such as those abov | `-e PIPER_NOISEW=0.333` | Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses. | | `-e PIPER_SPEAKER=0` | Speaker number to use if the voice supports multiple speakers. | | `-e PIPER_PROCS=1` | Number of Piper processes to run simultaneously. | +| `-e STREAMING=` | Setting to `true`, or any other value, will enable support for streaming audio on sentence boundaries. | | `-v /config` | Local path for piper config files. | | `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). | @@ -297,5 +300,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **10.08.25:** - Add streaming support. * **18.07.24:** - Rebase to Ubuntu Noble. * **25.11.23:** - Initial Release. diff --git a/readme-vars.yml b/readme-vars.yml index 4f0baad..518162c 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -35,6 +35,7 @@ opt_param_env_vars: - {env_var: "PIPER_NOISEW", env_value: "0.333", desc: "Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses."} - {env_var: "PIPER_SPEAKER", env_value: "0", desc: "Speaker number to use if the voice supports multiple speakers."} - {env_var: "PIPER_PROCS", env_value: "1", desc: "Number of Piper processes to run simultaneously."} + - {env_var: "STREAMING", env_value: "", desc: "Setting to `true`, or any other value, will enable support for streaming audio on sentence boundaries."} readonly_supported: true # application setup block app_setup_block_enabled: true @@ -85,6 +86,6 @@ init_diagram: | "piper:latest" <- Base Images # changelog changelogs: - #- {date: "26.11.24:", desc: "Add GPU branch."} + - {date: "10.08.25:", desc: "Add streaming support."} - {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."} - {date: "25.11.23:", desc: "Initial Release."} diff --git a/root/etc/s6-overlay/s6-rc.d/svc-piper/run b/root/etc/s6-overlay/s6-rc.d/svc-piper/run index dc3bf2b..4212cf0 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-piper/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-piper/run @@ -13,4 +13,5 @@ exec \ --voice "${PIPER_VOICE}" \ --max-piper-procs "${PIPER_PROCS:-1}" \ --data-dir /config \ - --download-dir /config --update-voices + --download-dir /config --update-voices \ + ${STREAMING:+--streaming}