whisper.cpp speech-to-text with CUDA and CPU backends for Swale tasks. Backs the whisper-cpp task.
181
Swale-built image backing the whisper-cpp task definition. It compiles a
release of whisper.cpp, the C/C++
implementation of OpenAI's Whisper speech recognition, so a workflow can
transcribe audio on a GPU or a CPU compute type. whisper.cpp's own registry
publishes images only under moving tags, none of which names a release.
nvidia/cuda, Ubuntu 24.04);
the build stage compiles on the matching CUDA development imagewhisper-cli and whisper.cpp's other tools in
/opt/whisper.cpp/bin, on PATH; no modelswale (uid 1000)WORKDIR /mnt/workspace, no ENTRYPOINT (the CUDA base's banner entrypoint is reset)The image declares no entrypoint, so a task definition's exec.args are the
full command line: ["whisper-cli", "--model", "<model.bin>", "--file", "<audio>", ...]. whisper-cli reads WAV, MP3 and FLAC.
Models are files in whisper.cpp's format, such as those in ggerganov/whisper.cpp on the Hugging Face Hub; the image carries none.
Each tag is the whisper.cpp release the image packages, such as 1.9.6. A
rebuild that keeps that version, to pick up a fixed base image or wrapper,
adds -r1, -r2, and so on. A tag is never reused; latest follows the
newest publish.
From the repository root:
docker build -t swaleio/whisper-cpp:dev images/whisper-cpp
Compiling the CUDA backend takes several minutes. Merging a change under
images/whisper-cpp publishes the image under its next tag; task definitions
reference it by digest.
Built from images/whisper-cpp in the
swaleio/task-definitions repository. For how a task definition
references an image, see the
task definition reference
in the Swale documentation.
The Dockerfile is covered by the
MIT License.
whisper.cpp is MIT-licensed; its license ships inside the image at
/opt/whisper.cpp/LICENSE.
This image also contains software from other projects, each under its own
license. The license texts its Ubuntu packages ship are inside the image, in
/usr/share/doc/<package>/copyright. Source code for its GPL and LGPL
components: https://launchpad.net/ubuntu/+source/<source-package>/<version>.
We also provide that source code on request: see
Third-party software.
It also contains NVIDIA software, which is not open source. NVIDIA licenses it
under the
NVIDIA Deep Learning Container License,
which you accept by pulling or using this image; a copy is at
/NGC-DL-CONTAINER-LICENSE.
docker pull swaleio/whisper-cpp:latest