]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Update README.md
authorGeorgi Gerganov <redacted>
Sat, 22 Oct 2022 16:30:35 +0000 (19:30 +0300)
committerGitHub <redacted>
Sat, 22 Oct 2022 16:30:35 +0000 (19:30 +0300)
examples/whisper.wasm/README.md

index 645bab8aef04d3c48c852c680d18b3e80c34fd7a..6a3756df39a433ac890863617593c83a5690f8c4 100644 (file)
@@ -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/