csukuangfj
commited on
Commit
•
b9f366f
1
Parent(s):
295f0d6
update model
Browse files- sherpa-onnx-asr.js +3 -1
- sherpa-onnx-wasm-main-asr.js +0 -0
- sherpa-onnx-wasm-main-asr.wasm +2 -2
sherpa-onnx-asr.js
CHANGED
@@ -425,7 +425,7 @@ function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {
|
|
425 |
const n = encoderLen + decoderLen + languageLen + taskLen;
|
426 |
const buffer = Module._malloc(n);
|
427 |
|
428 |
-
const len =
|
429 |
const ptr = Module._malloc(len);
|
430 |
|
431 |
let offset = 0;
|
@@ -453,6 +453,8 @@ function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {
|
|
453 |
Module.setValue(ptr + 12, buffer + offset, 'i8*');
|
454 |
offset += taskLen;
|
455 |
|
|
|
|
|
456 |
return {
|
457 |
buffer: buffer, ptr: ptr, len: len,
|
458 |
}
|
|
|
425 |
const n = encoderLen + decoderLen + languageLen + taskLen;
|
426 |
const buffer = Module._malloc(n);
|
427 |
|
428 |
+
const len = 5 * 4; // 4 pointers
|
429 |
const ptr = Module._malloc(len);
|
430 |
|
431 |
let offset = 0;
|
|
|
453 |
Module.setValue(ptr + 12, buffer + offset, 'i8*');
|
454 |
offset += taskLen;
|
455 |
|
456 |
+
Module.setValue(ptr + 16, config.tailPaddings || -1, 'i32');
|
457 |
+
|
458 |
return {
|
459 |
buffer: buffer, ptr: ptr, len: len,
|
460 |
}
|
sherpa-onnx-wasm-main-asr.js
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
sherpa-onnx-wasm-main-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:5336913d6c292ad6f7845fee4f6104302d4eaf0200f0cc1e19d6c12572215306
|
3 |
+
size 11148839
|