whisper.cpp/examples/command.wasm
Georgi Gerganov 09d7d2b68e
examples : refactor in order to reuse code and reduce duplication (#482)
* examples : refactor common code into a library

* examples : refactor common SDL code into a library

* make : update Makefile to use common libs

* common : fix MSVC M_PI ..

* addon.node : link common lib
2023-02-15 19:28:10 +02:00
..
CMakeLists.txt examples : refactor in order to reuse code and reduce duplication (#482) 2023-02-15 19:28:10 +02:00
emscripten.cpp examples : refactor in order to reuse code and reduce duplication (#482) 2023-02-15 19:28:10 +02:00
index-tmpl.html command.wasm : add voice assistant example for the Web (#171) 2022-11-26 11:40:06 +02:00
README.md whisper.objc : fix context + broken readme links 2022-11-27 10:52:27 +02:00

command.wasm

This is a basic Voice Assistant example that accepts voice commands from the microphone. It runs in fully in the browser via WebAseembly.

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

Terminal version: examples/command

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/command.wasm/*       /path/to/html/
cp bin/libcommand.worker.js /path/to/html/