From 11d6e8ca8458d607c144f6d255b353f248f2ce1b Mon Sep 17 00:00:00 2001 From: Christian Rute Date: Thu, 16 Jan 2025 18:35:46 +0100 Subject: [PATCH] works for maximum of 10min audio --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 419b1bc..8a0c94e 100644 --- a/app.py +++ b/app.py @@ -45,7 +45,7 @@ def start_recording(): is_recording = True start_time = time.time() # Record the start time print("Recording started...") - recorded_audio = sd.rec(int(SAMPLE_RATE * 60), samplerate=SAMPLE_RATE, channels=1, dtype=np.float32) + recorded_audio = sd.rec(int(SAMPLE_RATE * 600), samplerate=SAMPLE_RATE, channels=1, dtype=np.float32) return "Recording... Click 'Stop Recording' to finish."