Skip to content

Repository files navigation

Sherpaw 🐾

Sherpaw (the "w" stands for "WASM") is a WebAssembly (WASM) wrapper for Sherpa-ONNX—a framework for speech-related tasks (ASR, VAD, TTS, STT, SD, etc.) using onnxruntime purely locally.

Development

git clone git@github.com:sumimakito/sherpaw.git
git submodule init
git submodule update

Development at the WASM/C level

Prerequisites

Follow Sherpa-ONNX's Install Emscripten and Emscripten's Download and install guides to set up the Emscripten SDK.

Important

Some versions of Emscripten may be incompatible with Sherpa-ONNX. Ensure you follow their official documentation and use the recommended version.

Build

# Assuming Emscripten 3.1.64 is used
# Refer to the documentation above when selecting a version
./emsdk install 3.1.64
./emsdk activate 3.1.64

cd sherpa-onnx
./build.sh

The build outputs are located in sherpa-onnx/build/install/bin/wasm/.

License

Copyright 2025 Makito

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Sherpaw (the "w" stands for "WASM") is a WebAssembly (WASM) wrapper for Sherpa-ONNX—a framework for speech-related tasks (ASR, VAD, TTS, STT, SD, etc.) using onnxruntime purely locally.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages