We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575e311 commit 1facc7fCopy full SHA for 1facc7f
general/recording-and-playing-audio/audio_recorder.py
@@ -34,7 +34,7 @@
34
35
frames = []
36
print("Recording...")
37
-for i in range(int(44100 / chunk * record_seconds)):
+for i in range(int(sample_rate / chunk * record_seconds)):
38
data = stream.read(chunk)
39
# if you want to hear your voice while recording
40
# stream.write(data)
0 commit comments