works for maximum of 10min audio
This commit is contained in:
parent
13c78c882f
commit
11d6e8ca84
2
app.py
2
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."
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user