A pure wasm image to run the whisper model via WasmEdge and the WASI-NN Burn.rs plugin.
1.1K
TBD
# Put the audio file you want to handle in $(pwd)
# The `audio16k.wav` is used in the following example.
docker run \
--runtime=io.containerd.wasmedge.v1 \
--platform=wasi/wasm \
-v $(pwd):/resource \
--env WASMEDGE_WASINN_PRELOAD=default:Burn:GPU:/tiny_en.mpk:/tiny_en.cfg:/tokenizer.json:en \
whisper:latest /resource/audio16k.wav default
Expected output:
Loaded graph into wasi-nn with ID: 0
Created wasi-nn execution context with ID: 0
Loading waveform...
Executed audio to text converter.
Text: Hello, I am the whisper machine learning model. If you see this as text then I am working properly.
Content type
Image
Digest
sha256:c6bc3d4fe…
Size
88.9 MB
Last updated
over 2 years ago
docker pull secondstate/burn-whisper