chengsokdara / use-whisper

React hook for OpenAI Whisper with speech recorder, real-time transcription, and silence removal built-in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset to the default value transcript object

Olha-Diachek opened this issue · comments

Thank you so much for this great project!

I am using your library to develop a chat application with voice input. However, I have encountered an issue where the transcript variable retains the previous value after sending a message.

In this case, it would be great if you provide a method that resets the transcript variable to its default state.
Here is my PR #29 where I provide my solution.
Alternatively, if you have any other suggestions for resolving this issue, please let me know.