diff --git a/frontend/pages/index.js b/frontend/pages/index.js
index 56fc1b8..14b3f00 100644
--- a/frontend/pages/index.js
+++ b/frontend/pages/index.js
@@ -14,7 +14,9 @@ export default function Home() {
}
function handleStopRecording() {
- stopRecording(mediaRecorderRef, setRecording)
+ // Immediately stop the recording animation
+ setRecording(false)
+ stopRecording(mediaRecorderRef)
}
async function handleSendAudio(blob) {
@@ -45,10 +47,6 @@ export default function Home() {
🎤 Voice Assistant
-
- Experience the future of voice interaction. Press and hold to record your voice,
- or simply click to toggle recording mode.
-
{/* Main Interface */}
@@ -68,9 +66,9 @@ export default function Home() {