Skip to content

Commit 1facc7f

Browse files
committed
fix little issue on audio recorder tutorial
1 parent 575e311 commit 1facc7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

general/recording-and-playing-audio/audio_recorder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
frames = []
3636
print("Recording...")
37-
for i in range(int(44100 / chunk * record_seconds)):
37+
for i in range(int(sample_rate / chunk * record_seconds)):
3838
data = stream.read(chunk)
3939
# if you want to hear your voice while recording
4040
# stream.write(data)

0 commit comments

Comments
 (0)