To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at https://github.com/Codasign/york-software-bootcamp-audio-day.git .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Revision:

root / 1-wavread.py @ 4:2b996e1d64da

History | View | Annotate | Download (196 Bytes)

1
from scikits.audiolab import wavread
2

    
3
# specify a file name
4
filename = "viola.wav"
5

    
6
# extract audio from file
7
x, fs, enc = wavread(filename)     
8

    
9
# print out the first 50 samples
10
print x[0:50]
11

    
12