Fix CI for JavaScript and Python APIs. (#901)

This commit is contained in:
Fangjun Kuang
2024-05-22 13:57:00 +08:00
committed by GitHub
parent b2f0249420
commit 4f21aabd3c
10 changed files with 20 additions and 58 deletions

View File

@@ -425,7 +425,7 @@ function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {
const n = encoderLen + decoderLen + languageLen + taskLen;
const buffer = Module._malloc(n);
const len = 4 * 4; // 4 pointers
const len = 5 * 4; // 4 pointers
const ptr = Module._malloc(len);
let offset = 0;

View File

@@ -27,7 +27,7 @@ function initSherpaOnnxOfflineTtsVitsModelConfig(config, Module) {
const buffer = Module._malloc(n);
const len = 7 * 4;
const len = 8 * 4;
const ptr = Module._malloc(len);
let offset = 0;