From b52684f5afba99f3ed5f71beaa3a5788d4de2987 Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Sun, 14 Jul 2024 15:02:45 +0100 Subject: [PATCH] Set listen duration to 20 seconds --- client/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index a054590..d67102e 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -153,10 +153,10 @@ function App() { chunks.push(e.data); }; - // Stop recording after 15 seconds + // Stop recording after 20 seconds setTimeout(function () { mediaRecorder.stop(); - }, 15000); + }, 20000); mediaRecorder.addEventListener("stop", () => { const blob = new Blob(chunks, { type: "audio/wav" });