From: Georgi Gerganov Date: Sat, 22 Oct 2022 16:30:35 +0000 (+0300) Subject: Update README.md X-Git-Tag: upstream/1.7.4~1923 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f4aa01c2f8d0e007c796b27089ebd48d98ae79e4;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Update README.md --- diff --git a/examples/whisper.wasm/README.md b/examples/whisper.wasm/README.md index 645bab8a..6a3756df 100644 --- a/examples/whisper.wasm/README.md +++ b/examples/whisper.wasm/README.md @@ -25,3 +25,19 @@ audio is limited to 120 seconds. Link: https://whisper.ggerganov.com ![image](https://user-images.githubusercontent.com/1991296/197348344-1a7fead8-3dae-4922-8b06-df223a206603.png) + + +## Build instructions + +```bash +# build using Emscripten +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/whisper.wasm/index.html /path/to/html/ +cp bin/whisper.wasm/whisper.js /path/to/html/ +cp bin/libwhisper.worker.js /path/to/html/