sherpa
1.3
  • Introduction
  • Download pdf
  • Social groups
  • Run Next-gen Kaldi in your browser
  • Pre-trained models

k2-fsa/sherpa

  • sherpa

k2-fsa/sherpa-ncnn

  • sherpa-ncnn

k2-fsa/sherpa-onnx

  • sherpa-onnx
    • Tutorials
    • Installation
    • Frequently Asked Question (FAQs)
    • Python
    • C API
    • Java API
    • Javascript API
    • Kotlin API
    • Swift API
    • Go API
    • C# API
    • Pascal API
    • Lazarus
    • WebAssembly
    • Android
    • HarmonyOS
    • iOS
    • Flutter
    • WebSocket
    • Hotwords (Contextual biasing)
    • Keyword spotting
    • Punctuation
    • Audio tagging
    • Spoken language identification
    • VAD
    • Pre-trained models
    • Moonshine
      • Huggingface space
      • Models
      • Android APKs for Moonshine
      • C API examples
      • C# API examples
      • Dart API examples
      • Go API examples
      • Java API examples
      • JavaScript API examples
        • WebAssembly based npm package
        • node-addon based npm package
      • Kotlin API examples
      • Pascal API examples
      • Python API examples
      • Swift API examples
    • SenseVoice
    • FireRedAsr
    • Dolphin
    • Speaker Diarization
    • Speaker Identification
    • Speech enhancement
    • rknn
    • Text-to-speech (TTS)

Triton

  • Triton
sherpa
  • »
  • sherpa-onnx »
  • Moonshine »
  • JavaScript API examples
  • Edit on GitHub

JavaScript API examples

We provide two npm packages.

WebAssembly based npm package

You can find the package at

https://www.npmjs.com/package/sherpa-onnx

This package does not support multi-threading.

The example for Moonshine can be found at

  • https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-examples/test-offline-moonshine.js

  • https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-examples/test-vad-with-non-streaming-asr-moonshine.js

node-addon based npm package

You can find the package at

https://www.npmjs.com/package/sherpa-onnx-node

This package supports multi-threading.

Please see

https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-addon-examples/README.md#introduction

for installation.

The example for Moonshine can be found at

  • https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-addon-examples/test_asr_non_streaming_moonshine.js

  • https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-addon-examples/test_vad_asr_non_streaming_moonshine_microphone.js

Previous Next

© Copyright 2022-2025, sherpa development team.

Built with Sphinx using a theme provided by Read the Docs.