node : add audio_ctx and audio buffer params (#2123)

* node : add audio_ctx param

* node : support passing audio buffer directly

* node : parse audio_ctx in index.js

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Pedro Probst
2024-05-13 15:22:23 +03:00
committed by GitHub
co-authored by Georgi Gerganov
parent 2ced6f0742
commit 3928dbd206
3 changed files with 48 additions and 9 deletions
@@ -16,6 +16,7 @@ const whisperParamsMock = {
comma_in_time: false,
translate: true,
no_timestamps: false,
audio_ctx: 0,
};
describe("Run whisper.node", () => {