Post date: Mar 04, 2018 1:56:28 PM
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python3# -*- coding: utf-8 -*-import scipyimport matplotlib.pyplot as pltimport scipy.io.wavfilesample_rate, X = scipy.io.wavfile.read('audio.wav')print (sample_rate, X.shape )plt.specgram(X, Fs=sample_rate, xextent=(0,30))
Spectrogram in R is here.