In [23]:
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import scipy.io.wavfile
import scipy.ndimage as sp
import calendar

from IPython.display import Audio

In [33]:
wavFile = scipy.io.wavfile.read('./english_horn.wav')

In [24]:
!ls


1998DailyTempBos.csv  house.png		      qea_day4_beforeclass_bb8.ipynb
english_horn.wav      qea_day2_inclass.ipynb

In [28]:
wavFile


Out[28]:
(8000, array([153, 340, 175, ..., -15,  22,  13], dtype=int16))

In [32]:
len(wavFile[1]) / wavFile[0]


Out[32]:
4

In [ ]: