whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

node : add audio_ctx and audio buffer params

Open pprobst opened this issue 1 year ago • 0 comments

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

  • It adds the audio_ctx param.
  • It adds the option to pass directly an audio array with param pcmf32, instead of reading from a file as usual.

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.

pprobst avatar May 05 '24 15:05 pprobst