Browse Source

Audio

pull/46/head
Jure Šorn 4 years ago
parent
commit
0b64674b08
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
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)

2
index.html

@ -2386,7 +2386,7 @@ write_to_wav_file(<span class="hljs-string">'test.wav'</span>, samples_f)
</code></pre></div>
<div><h4 id="playsawavfile">Plays a WAV file:</h4><pre><code class="python language-python hljs"><span class="hljs-comment"># $ pip3 install simpleaudio</span>
<span class="hljs-keyword">import</span> wave, simpleaudio
<span class="hljs-keyword">import</span> simpleaudio
<span class="hljs-keyword">with</span> wave.open(<span class="hljs-string">'test.wav'</span>, <span class="hljs-string">'rb'</span>) <span class="hljs-keyword">as</span> file:
p = file.getparams()
frames = file.readframes(p.nframes)

Loading…
Cancel
Save