diff --git a/lsio/faster-whisper/docker-compose.yaml b/lsio/faster-whisper/docker-compose.yaml index 430e863..7ef5075 100644 --- a/lsio/faster-whisper/docker-compose.yaml +++ b/lsio/faster-whisper/docker-compose.yaml @@ -1,6 +1,7 @@ # [Faster-whisper](https://github.com/SYSTRAN/faster-whisper) is a # reimplementation of OpenAI's Whisper model using CTranslate2, which is a fast -# inference engine for Transformer models. +# inference engine for Transformer models. This container provides a Wyoming +# protocol server for faster-whisper. --- version: "2.1" diff --git a/lsio/faster-whisper/docker-run.sh b/lsio/faster-whisper/docker-run.sh index 9168d35..64129ab 100644 --- a/lsio/faster-whisper/docker-run.sh +++ b/lsio/faster-whisper/docker-run.sh @@ -1,6 +1,7 @@ # [Faster-whisper](https://github.com/SYSTRAN/faster-whisper) is a # reimplementation of OpenAI's Whisper model using CTranslate2, which is a fast -# inference engine for Transformer models. +# inference engine for Transformer models. This container provides a Wyoming +# protocol server for faster-whisper. . ./.env docker run -d \ diff --git a/lsio/piper/docker-compose.yaml b/lsio/piper/docker-compose.yaml new file mode 100644 index 0000000..adee966 --- /dev/null +++ b/lsio/piper/docker-compose.yaml @@ -0,0 +1,36 @@ +# [Piper](https://github.com/rhasspy/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. + +--- +version: "2.1" +services: + piper: + image: ghcr.io/linuxserver/piper + container_name: piper + environment: + # for UserID + - PUID=${PUID:-1024} + # for GroupID + - PGID=${PGID:-100} + # specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). + - TZ=${TZ:-Europe/Amsterdam} + # The [Piper voice](https://huggingface.co/rhasspy/piper-voices/tree/main) to use, in the format `--` + - PIPER_VOICE=en_US-lessac-medium + # Voice speaking rate, 1.0 is default with < 1.0 being faster and > 1.0 being slower. + - PIPER_LENGTH=1.0 # optional + # Controls the variability of the voice by adding noise. Values above 1 will start to degrade audio. + - PIPER_NOISE=0.667 # optional + # Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses. + - PIPER_NOISEW=0.333 # optional + # Speaker number to use if the voice supports multiple speakers. + - PIPER_SPEAKER=0 # optional + # Number of Piper processes to run simultaneously. + - PIPER_PROCS=1 # optional + volumes: + # Local path for piper config files. + - ${BASEDIR:-/volume1/docker}/piper/config:/config + ports: + # Wyoming connection port. + - 10200:10200 + restart: unless-stopped diff --git a/lsio/piper/docker-run.sh b/lsio/piper/docker-run.sh new file mode 100644 index 0000000..05a42b8 --- /dev/null +++ b/lsio/piper/docker-run.sh @@ -0,0 +1,20 @@ +# [Piper](https://github.com/rhasspy/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. + +. ./.env +docker run -d \ + --name=piper \ + -e PUID=${PUID:-1024} `# for UserID` \ + -e PGID=${PGID:-100} `# for GroupID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \ + -e PIPER_VOICE=en_US-lessac-medium `# The [Piper voice](https://huggingface.co/rhasspy/piper-voices/tree/main) to use, in the format `--`` \ + -e PIPER_LENGTH=1.0 `# optional` `# Voice speaking rate, 1.0 is default with < 1.0 being faster and > 1.0 being slower.` \ + -e PIPER_NOISE=0.667 `# optional` `# Controls the variability of the voice by adding noise. Values above 1 will start to degrade audio.` \ + -e PIPER_NOISEW=0.333 `# optional` `# Controls the variability of speaking cadence. Values above 1 produce extreme stutters and pauses.` \ + -e PIPER_SPEAKER=0 `# optional` `# Speaker number to use if the voice supports multiple speakers.` \ + -e PIPER_PROCS=1 `# optional` `# Number of Piper processes to run simultaneously.` \ + -p 10200:10200 `# Wyoming connection port.` \ + -v ${BASEDIR:-/volume1/docker}/piper/config:/config `# Local path for piper config files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/piper diff --git a/lsio/piper/run-once.sh b/lsio/piper/run-once.sh new file mode 100644 index 0000000..1d356aa --- /dev/null +++ b/lsio/piper/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/piper/config