Add VAD + Non-streaming ASR example for JavaScript API. (#1170)

This commit is contained in:
Fangjun Kuang
2024-07-26 12:42:08 +08:00
committed by GitHub
parent 299f1a852b
commit 994c3e7c96
22 changed files with 189 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ environment:
sdk: ^3.4.0
dependencies:
# sherpa_onnx: ^1.10.17
# sherpa_onnx: ^1.10.18
sherpa_onnx:
path: ../../flutter/sherpa_onnx
path: ^1.9.0

View File

@@ -17,7 +17,7 @@ topics:
- voice-activity-detection
# remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx.podspec
version: 1.10.17
version: 1.10.18
homepage: https://github.com/k2-fsa/sherpa-onnx

View File

@@ -65,7 +65,7 @@ config = {
}
clear() {
addon.VoiceActivityDetectorClearWrapper(this.handle);
addon.voiceActivityDetectorClear(this.handle);
}
/*
@@ -79,11 +79,11 @@ config = {
}
reset() {
addon.VoiceActivityDetectorResetWrapper(this.handle);
addon.voiceActivityDetectorReset(this.handle);
}
flush() {
addon.VoiceActivityDetectorFlushWrapper(this.handle);
addon.voiceActivityDetectorFlush(this.handle);
}
}