This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/dart-api-examples/vad
Fangjun Kuang 53a3ad366b Support linux aarch64 for Dart and Flutter (#2342)
Adds support for building and packaging Linux AArch64 (arm64) artifacts alongside x64 for Dart/Flutter plugins.

- Detects host architecture in CMake and adjusts library paths
- Extends test workflows to run on an ARM runner and handle linux-aarch64 paths
- Splits release pipeline into separate x64 and aarch64 build/package jobs
2025-07-04 19:33:48 +08:00
..
2024-06-14 10:37:16 +08:00
2025-06-27 10:55:46 +08:00
2024-06-14 10:37:16 +08:00
2024-06-14 10:37:16 +08:00

Introduction

This example shows how to use the Dart API from sherpa-onnx for voice activity detection (VAD). Specifically, we use VAD to remove silences from a wave file.

Usage

dart pub get

wget https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/lei-jun-test.wav

dart run \
  ./bin/vad.dart \
  --silero-vad ./silero_vad.onnx \
  --input-wav ./lei-jun-test.wav \
  --output-wav ./lei-jun-test-no-silence.wav

It should generate a file lei-jun-test-no-silence.wav, where silences are removed.