chengsokdara / use-whisper

React hook for OpenAI Whisper with speech recorder, real-time transcription, and silence removal built-in
MIT License
735 stars 139 forks source link

Streaming mode with onTranscribe function doesn't work correctly #33

Open dandiep opened 1 year ago

dandiep commented 1 year ago

When streaming mode is enabled, the onWhispered function is always called instead of the onTranscribe function.

This is easily fixed. I'd issue a pull request, but I made a few other commits, which shouldn't be integrated. So here's a diff of a fix:

https://github.com/squidgyai/use-whisper/commit/4b38d9aa7c184fa9e4adaefa510ec188a23a1193

Thanks for the great component!

emmanuel-omegaalexis commented 1 year ago

When will this fix be integrated? I agree this is a great component.