speech to text typo correction (#3330)

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
Yash Suresh Chandra
2025-02-27 04:56:08 +05:30
committed by GitHub
parent 6dd1fdc546
commit 23d5f368d9
3 changed files with 9 additions and 8 deletions

View File

@@ -68,14 +68,14 @@ export default function ChatContainer({ workspace, knownHistory = [] }) {
if (listening) {
// Stop the mic if the send button is clicked
endTTSSession();
endSTTSession();
}
setChatHistory(prevChatHistory);
setMessageEmit("");
setLoadingResponse(true);
};
function endTTSSession() {
function endSTTSession() {
SpeechRecognition.stopListening();
resetTranscript();
}