whisper.cpp/examples/stream.wasm
Andrew S 0d8fd8483a
stream.wasm : fix invalid memory access when no segments ()
No segments may be returned when a smaller sample buffer (EG 2048 samples) is sent to the worker.
2024-02-26 10:12:35 +02:00
..
CMakeLists.txt cmake : update to 3.19 () 2023-01-05 21:22:48 +02:00
emscripten.cpp stream.wasm : fix invalid memory access when no segments () 2024-02-26 10:12:35 +02:00
index-tmpl.html whisper : add integer quantization support () 2023-04-30 18:51:57 +03:00
README.md stream.wasm : add web-based real-time transcription () 2022-11-25 23:57:46 +02:00

stream.wasm

Real-time transcription in the browser using WebAssembly

Online demo: https://whisper.ggerganov.com/stream/

Build instructions

# build using Emscripten (v3.1.2)
git clone https://github.com/ggerganov/whisper.cpp
cd whisper.cpp
mkdir build-em && cd build-em
emcmake cmake ..
make -j

# copy the produced page to your HTTP path
cp bin/stream.wasm/*       /path/to/html/
cp bin/libstream.worker.js /path/to/html/