diff --git a/lsio/faster-whisper/docker-compose.yaml b/lsio/faster-whisper/docker-compose.yaml new file mode 100644 index 0000000..430e863 --- /dev/null +++ b/lsio/faster-whisper/docker-compose.yaml @@ -0,0 +1,30 @@ +# [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. + +--- +version: "2.1" +services: + faster-whisper: + image: ghcr.io/linuxserver/faster-whisper + container_name: faster-whisper + 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} + # Whisper model that will be used for transcription. + - WHISPER_MODEL=tiny-int8 + # Number of candidates to consider simultaneously during transcription. + - WHISPER_BEAM=1 # optional + # Language that you will speak to the add-on. + - WHISPER_LANG=en # optional + volumes: + # Local path for Whisper config files. + - ${BASEDIR:-/volume1/docker}/faster-whisper/config:/config + ports: + # Wyoming connection port. + - 10300:10300 + restart: unless-stopped diff --git a/lsio/faster-whisper/docker-run.sh b/lsio/faster-whisper/docker-run.sh new file mode 100644 index 0000000..9168d35 --- /dev/null +++ b/lsio/faster-whisper/docker-run.sh @@ -0,0 +1,17 @@ +# [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. + +. ./.env +docker run -d \ + --name=faster-whisper \ + -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 WHISPER_MODEL=tiny-int8 `# Whisper model that will be used for transcription.` \ + -e WHISPER_BEAM=1 `# optional` `# Number of candidates to consider simultaneously during transcription.` \ + -e WHISPER_LANG=en `# optional` `# Language that you will speak to the add-on.` \ + -p 10300:10300 `# Wyoming connection port.` \ + -v ${BASEDIR:-/volume1/docker}/faster-whisper/config:/config `# Local path for Whisper config files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/faster-whisper diff --git a/lsio/faster-whisper/run-once.sh b/lsio/faster-whisper/run-once.sh new file mode 100644 index 0000000..5f6f286 --- /dev/null +++ b/lsio/faster-whisper/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/faster-whisper/config