mirror of
https://github.com/linuxserver/docker-piper.git
synced 2026-03-16 00:01:56 +08:00
Add streaming support
This commit is contained in:
parent
581eeadae9
commit
d16bad35cb
0
.editorconfig
Executable file → Normal file
0
.editorconfig
Executable file → Normal file
@ -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.
|
||||
|
||||
@ -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."}
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user