mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-26 01:25:15 +02:00
speech to text typo correction (#3330)
Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
committed by
GitHub
parent
6dd1fdc546
commit
23d5f368d9
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user