diff --git a/README.md b/README.md index 72353bd..b0625ad 100644 --- a/README.md +++ b/README.md @@ -2807,7 +2807,7 @@ write_to_wav_file('test.wav', samples_f) #### Plays a WAV file: ```python # $ pip3 install simpleaudio -import wave, simpleaudio +import simpleaudio with wave.open('test.wav', 'rb') as file: p = file.getparams() frames = file.readframes(p.nframes) diff --git a/index.html b/index.html index 5de47e5..cab27a7 100644 --- a/index.html +++ b/index.html @@ -2386,7 +2386,7 @@ write_to_wav_file('test.wav', samples_f)
# $ pip3 install simpleaudio
-import wave, simpleaudio
+import simpleaudio
with wave.open('test.wav', 'rb') as file:
p = file.getparams()
frames = file.readframes(p.nframes)