继续操作前请注册或者登录。
名称 最后更新
..
bin 正在载入提交数据...
.gitignore 正在载入提交数据...
CHANGELOG.md 正在载入提交数据...
README.md 正在载入提交数据...
analysis_options.yaml 正在载入提交数据...
pubspec.lock 正在载入提交数据...
pubspec.yaml 正在载入提交数据...
run-ten-vad.sh 正在载入提交数据...
run.sh 正在载入提交数据...

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.