Add tail_paddings to Whisper C API. (#886)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user