sherpa-onnx
Advanced tools
Comparing version 1.10.25 to 1.10.26
{ | ||
"name": "sherpa-onnx", | ||
"version": "1.10.25", | ||
"version": "1.10.26", | ||
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ function freeConfig(config, Module) { | ||
const len = 5 * 4; | ||
const len = 6 * 4; | ||
const ptr = Module._malloc(len); | ||
@@ -44,2 +44,5 @@ | ||
Module.setValue(ptr + offset, config.maxSpeechDuration || 20, 'float'); | ||
offset += 4; | ||
return { | ||
@@ -58,2 +61,3 @@ buffer: buffer, ptr: ptr, len: len, | ||
windowSize: 512, | ||
maxSpeechDuration: 20, | ||
}; | ||
@@ -99,2 +103,3 @@ } | ||
minSpeechDuration: 0.25, | ||
maxSpeechDuration: 20, | ||
windowSize: 512, | ||
@@ -101,0 +106,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
12344894
1952