csukuangfj
commited on
Commit
•
21e0ca5
1
Parent(s):
5013ea1
update model
Browse files- app-vad-asr.js +7 -0
- sherpa-onnx-wasm-main-vad-asr.wasm +2 -2
app-vad-asr.js
CHANGED
@@ -111,6 +111,13 @@ function initOfflineRecognizer() {
|
|
111 |
};
|
112 |
} else if (fileExists('telespeech.onnx')) {
|
113 |
config.modelConfig.telespeechCtc = './telespeech.onnx';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
} else {
|
115 |
console.log('Please specify a model.');
|
116 |
alert('Please specify a model.');
|
|
|
111 |
};
|
112 |
} else if (fileExists('telespeech.onnx')) {
|
113 |
config.modelConfig.telespeechCtc = './telespeech.onnx';
|
114 |
+
} else if (fileExists('moonshine-preprocessor.onnx')) {
|
115 |
+
config.modelConfig.moonshine = {
|
116 |
+
preprocessor: './moonshine-preprocessor.onnx',
|
117 |
+
encoder: './moonshine-encoder.onnx',
|
118 |
+
uncachedDecoder: './moonshine-uncached-decoder.onnx',
|
119 |
+
cachedDecoder: './moonshine-cached-decoder.onnx'
|
120 |
+
};
|
121 |
} else {
|
122 |
console.log('Please specify a model.');
|
123 |
alert('Please specify a model.');
|
sherpa-onnx-wasm-main-vad-asr.wasm
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71ba4191e4ad866d04dc7fb8963fe01a1107a0c7b0f304ed25a7f904cd7168aa
|
3 |
+
size 11427885
|