Skip to content

blocklessnetwork/wasi-whisper.cpp

Repository files navigation

wasi-whisper.cpp

How to build

$ export WASI_SDK=`pwd`/wasi-sdk
$ make

Download models

$ make download

Translate to 16 bit wav

$ ffmpeg -loglevel -0 -y -i samples.ogg -ar 16000 -ac 1 -c:a pcm_s16le samples.wav

Run with bls-runtime

$ bls-runtime --fs-root-path=`pwd` whisper.wasm --  -m models/ggml-base.en.bin -f samples/jfk.wav --print-colors

Lib file

The arhive file is in whisper.wasm.tar.gz, file name is libwhisper.a