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

Suggested mode #25

Open TomYeoman opened 1 year ago

TomYeoman commented 1 year ago

Is there interest for a mode / is it already possible to do the following;

Start listening automatically to voice until a break (this is already possible using the config below), but later allow the user to restart the same flow again at any point by talking again.

    nonStop: true, // keep recording as long as the user is speaking
    stopTimeout: 2000, // auto stop after 5 seconds

At the minute the only option seems to be the streaming option to achieve this, but the problem I found was that the transcript becomes one continuous message, whereas I would like it broke up into different chunks, as of when they are spoken.