csukuangfj commited on
Commit
f9ab42c
1 Parent(s): 933cae2

update model

Browse files
Files changed (1) hide show
  1. sherpa-onnx-asr.js +1 -1
sherpa-onnx-asr.js CHANGED
@@ -546,7 +546,7 @@ function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {
546
  Module.setValue(ptr + 12, buffer + offset, 'i8*');
547
  offset += taskLen;
548
 
549
- Module.setValue(ptr + 16, config.tailPaddings || -1, 'i32');
550
 
551
  return {
552
  buffer: buffer, ptr: ptr, len: len,
 
546
  Module.setValue(ptr + 12, buffer + offset, 'i8*');
547
  offset += taskLen;
548
 
549
+ Module.setValue(ptr + 16, config.tailPaddings || 2000, 'i32');
550
 
551
  return {
552
  buffer: buffer, ptr: ptr, len: len,