From 15d88dfa250d40638d70816423e25aabe08da3d1 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Fri, 16 May 2025 15:25:17 +0700 Subject: [PATCH] Play the output audio instead of echoing the input --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index c905f6f..4d2ec8f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -71,7 +71,7 @@ function App() { }) }); const outputAudioBlob = await speechRes.blob(); - const audioUrl = URL.createObjectURL(audioBlob); + const audioUrl = URL.createObjectURL(outputAudioBlob); const audio = new Audio(audioUrl); audio.play(); }; @@ -87,7 +87,7 @@ function App() { if (mediaRecorderRef.current.stream) { mediaRecorderRef.current.stream.getTracks().forEach(track => track.stop()); } - + setIsRecording(false); };