From f4aa01c2f8d0e007c796b27089ebd48d98ae79e4 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 22 Oct 2022 19:30:35 +0300 Subject: [PATCH] Update README.md --- examples/whisper.wasm/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/whisper.wasm/README.md b/examples/whisper.wasm/README.md index 645bab8..6a3756d 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/