From 981945a0f04b4f77ed2ae7d1697052540f664540 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Mon, 26 May 2025 16:36:58 +0700 Subject: [PATCH] do not auto-record after teacher finished speaking --- src/App.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 948a131..b345b04 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -155,12 +155,7 @@ Teacher: Good job! How about Magic – something special and powerful. audio.play(); audio.onended = () => { - if (mediaRecorderRef.current && audioStreamRef.current) { - audioChunksRef.current = []; - mediaRecorderRef.current.start(); - setIsRecording(true); - monitorSilence(); - } + // Do nothing here — wait for user to press the button }; }; };