chengsokdara / use-whisper

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

add onTranscript callback #16

Open vgrafe opened 1 year ago

vgrafe commented 1 year ago

This callback is called when a transcript is received from whisper. Won't be called when streaming is true.

I find this easier to consume the resulting transcript if it must be sent to another method or api, rather than having to compare state over time. Let me know if there's an existing or better way to achieve this.

This is sent as proof of concept, I'll also edit the readme if you validate this contribution.. Thanks!

geyang commented 11 months ago

@chengsokdara there are quite a few PRs waiting to be reviewed. Do you need folks to help you maintain this repo?