ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.38k stars 3.61k forks source link

node : add audio_ctx and audio buffer params #2123

Closed pprobst closed 5 months ago

pprobst commented 5 months ago

This PR does two things regarding the addon.node example.

I added the last option mostly because I'm using it myself, and it might be useful for others. This way, we can pass a WAV (mono channel) audio array directly to addon.node, without the need to read from a file.