addon.node : using whisper as a Node.js addon (#443)

* addon: implement node addon call whisper through cpp

* addon: modify the license to MIT

* addon: remove iostream

* addon: rename dir

* addon: fix typo

* addon: configure cmake to build when cmake-js is used
This commit is contained in:
Qianhe Chen
2023-02-04 15:10:25 +08:00
committed by GitHub
parent b2fc4c7010
commit c306a7fd89
7 changed files with 528 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ if (EMSCRIPTEN)
add_subdirectory(command.wasm)
add_subdirectory(talk.wasm)
add_subdirectory(bench.wasm)
elseif(CMAKE_JS_VERSION)
add_subdirectory(addon.node)
else()
add_subdirectory(main)
add_subdirectory(stream)