From fb0839172e99e542dda8340852453a5f8d8db804 Mon Sep 17 00:00:00 2001 From: YannAhlgrim Date: Thu, 9 Oct 2025 09:49:59 +0200 Subject: [PATCH] audioblob fix --- frontend/pages/index.js | 10 ++++------ frontend/services/audioService.js | 9 ++++----- 2 files changed, 8 insertions(+), 11 deletions(-) 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() {