Skip to content

Commit bb12ea8

Browse files
authored
Merge pull request #13 from linuxserver/streaming
2 parents 004554d + d16bad3 commit bb12ea8

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.editorconfig

100755100644
File mode changed.

LICENSE

100755100644
File mode changed.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
- PIPER_NOISEW=0.333 #optional
9090
- PIPER_SPEAKER=0 #optional
9191
- PIPER_PROCS=1 #optional
92+
- STREAMING= #optional
9293
volumes:
9394
- /path/to/piper/data:/config
9495
ports:
@@ -110,6 +111,7 @@ docker run -d \
110111
-e PIPER_NOISEW=0.333 `#optional` \
111112
-e PIPER_SPEAKER=0 `#optional` \
112113
-e PIPER_PROCS=1 `#optional` \
114+
-e STREAMING= `#optional` \
113115
-p 10200:10200 \
114116
-v /path/to/piper/data:/config \
115117
--restart unless-stopped \
@@ -132,6 +134,7 @@ Containers are configured using parameters passed at runtime (such as those abov
132134
| `-e PIPER_NOISEW=0.333` | Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses. |
133135
| `-e PIPER_SPEAKER=0` | Speaker number to use if the voice supports multiple speakers. |
134136
| `-e PIPER_PROCS=1` | Number of Piper processes to run simultaneously. |
137+
| `-e STREAMING=` | Setting to `true`, or any other value, will enable support for streaming audio on sentence boundaries. |
135138
| `-v /config` | Local path for piper config files. |
136139
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
137140

@@ -297,5 +300,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
297300

298301
## Versions
299302

303+
* **10.08.25:** - Add streaming support.
300304
* **18.07.24:** - Rebase to Ubuntu Noble.
301305
* **25.11.23:** - Initial Release.

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ opt_param_env_vars:
3535
- {env_var: "PIPER_NOISEW", env_value: "0.333", desc: "Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses."}
3636
- {env_var: "PIPER_SPEAKER", env_value: "0", desc: "Speaker number to use if the voice supports multiple speakers."}
3737
- {env_var: "PIPER_PROCS", env_value: "1", desc: "Number of Piper processes to run simultaneously."}
38+
- {env_var: "STREAMING", env_value: "", desc: "Setting to `true`, or any other value, will enable support for streaming audio on sentence boundaries."}
3839
readonly_supported: true
3940
# application setup block
4041
app_setup_block_enabled: true
@@ -85,6 +86,6 @@ init_diagram: |
8586
"piper:latest" <- Base Images
8687
# changelog
8788
changelogs:
88-
#- {date: "26.11.24:", desc: "Add GPU branch."}
89+
- {date: "10.08.25:", desc: "Add streaming support."}
8990
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
9091
- {date: "25.11.23:", desc: "Initial Release."}

root/etc/s6-overlay/s6-rc.d/svc-piper/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ exec \
1313
--voice "${PIPER_VOICE}" \
1414
--max-piper-procs "${PIPER_PROCS:-1}" \
1515
--data-dir /config \
16-
--download-dir /config --update-voices
16+
--download-dir /config --update-voices \
17+
${STREAMING:+--streaming}

0 commit comments

Comments
 (0)