From 0b64674b08c6ba810542fe5e966f644276313d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 17 Dec 2019 18:04:02 +0100 Subject: [PATCH] Audio --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)

Plays a WAV file:

# $ pip3 install simpleaudio
-import wave, simpleaudio
+import simpleaudio
 with wave.open('test.wav', 'rb') as file:
     p = file.getparams()
     frames = file.readframes(p.nframes)