Timothy J. Baek 6 月之前
父节点
当前提交
330ad0131c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/lib/components/chat/MessageInput/VoiceRecording.svelte

+ 5 - 0
src/lib/components/chat/MessageInput/VoiceRecording.svelte

@@ -250,6 +250,11 @@
 		if (recording && mediaRecorder) {
 			await mediaRecorder.stop();
 		}
+
+		if (speechRecognition) {
+			speechRecognition.stop();
+		}
+
 		stopDurationCounter();
 		audioChunks = [];