works for maximum of 10min audio

This commit is contained in:
Christian Rute 2025-01-16 18:35:46 +01:00
parent 13c78c882f
commit 11d6e8ca84

2
app.py
View File

@ -45,7 +45,7 @@ def start_recording():
is_recording = True is_recording = True
start_time = time.time() # Record the start time start_time = time.time() # Record the start time
print("Recording started...") 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." return "Recording... Click 'Stop Recording' to finish."