Add tail_paddings to Whisper C API. (#886)

This commit is contained in:
Fangjun Kuang
2024-05-17 09:20:07 +08:00
committed by GitHub
parent 65635b09d8
commit 8af2af8466
13 changed files with 29 additions and 9 deletions

View File

@@ -453,6 +453,8 @@ function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {
Module.setValue(ptr + 12, buffer + offset, 'i8*');
offset += taskLen;
Module.setValue(ptr + 16, config.tailPaddings || -1, 'i32');
return {
buffer: buffer, ptr: ptr, len: len,
}