# This is a sample Python script. # Press ⌃R to execute it or replace it with your code. # Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. """ from pyAudioAnalysis import audioAnalysis as aN def print_hi(name): # Use a breakpoint in the code line below to debug your script. aN.thumbnailWrapper('./data/born.wav', 3.3333 * 4) # Press ⌘F8 to toggle the breakpoint. # Press the green button in the gutter to run the script. if __name__ == '__main__': print_hi('PyCharm') # See PyCharm help at https://www.jetbrains.com/help/pycharm/ """ from pyAudioAnalysis import audioBasicIO from pyAudioAnalysis import ShortTermFeatures import matplotlib.pyplot as plt [Fs, x] = audioBasicIO.read_audio_file("./data/kisloty.wav") F, f_names = ShortTermFeatures.feature_extraction(x[:, 0], Fs, 0.4137931034*Fs, 0.5*0.4137931034*Fs) print(Fs) plt.figure(figsize=(19.2,10.8)) for i in range(0, 9): plt.subplot(3, 3, i+1) plt.plot(F[i, :]) plt.xlabel('Frame no') plt.ylabel(f_names[i]) plt.tight_layout() plt.savefig("./plots/kisloty_9_stf.png") plt.show()