Ralireza / DSP-SPECTROGRAM

create spectrogram of signal from scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSP-SPECTROGRAM

create spectrogram of signal from scratch example

Description

specto class divided into 3 origin function:

1- readfile(filename='sound.wav')

read wave sound and get one channel of sound

return => signal of that channel and sampeling frequency

2- calculate_spectrogram(signal_data, nfft, count_in_frame, window, overlap_percent)

It splited signal into overlapping sections and applies the window specified by the window parameter to each section

after that it compute discrete time fourier transform for each section and return final_spectrogram.

3- show_spetrogram(spectrogram_matrix, nfft)

show imagee of spectrogram by matplotlib.pyplot

feel free to play with params :)

About

create spectrogram of signal from scratch

License:Apache License 2.0


Languages

Language:Python 100.0%