-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor updates to piper voice, ingnoring env files, and updating the e…
…xample docker compose file Remove unused import
- Loading branch information
Showing
6 changed files
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ scripts/ | |
|
||
# Models | ||
piper_models/* | ||
|
||
# Env files | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
services: | ||
piper: | ||
image: lscr.io/linuxserver/piper:latest | ||
container_name: piper | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Etc/UTC | ||
- PIPER_VOICE=en_US-hfc_male-medium | ||
- PIPER_LENGTH=1.0 # optional | ||
- PIPER_NOISE=0.667 # optional | ||
- PIPER_NOISEW=0.333 # optional | ||
- PIPER_SPEAKER=0 # optional | ||
- PIPER_PROCS=1 # optional | ||
volumes: | ||
# - /path/to/piper/data:/config # Optional volume for Piper config | ||
- ./piper_models:/usr/share/piper_models # Volume for Piper models, find models at https://github.com/rhasspy/piper/ | ||
ports: | ||
- 10200:10200 | ||
restart: unless-stopped | ||
healthcheck: | ||
test: ['CMD-SHELL', 'nc -z localhost 10200'] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
epub_to_audiobook: | ||
build: | ||
context: ./ # Directory containing the Dockerfile for epub_to_audiobook | ||
dockerfile: Dockerfile # Name of the Dockerfile (if it's not the default 'Dockerfile') | ||
container_name: epub_to_audiobook | ||
environment: | ||
- PIPER_HOST=piper | ||
- PIPER_PORT=10200 | ||
volumes: | ||
- ./:/app | ||
- <path/to/epub/dir/on/host>:/epub_src # Map the top level epub directory on the host machine | ||
# command: tail -f /dev/null # Uncomment this line to keep the container running, and run via connecting to it with `docker exec -it epub_to_audiobook /bin/bash` | ||
command: "python main.py --tts piper_docker --no_prompt '/epub_src/<path/to/epub/file>' audiobook_output" # Run command directly when the containers start up | ||
depends_on: | ||
piper: | ||
condition: service_healthy |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters