Reconstructing an Audio Signal from Spectrogram Image

7 Ansichten (letzte 30 Tage)
Fareed Jamali
Fareed Jamali am 7 Apr. 2021
Bearbeitet: Fareed Jamali am 7 Apr. 2021
Hello everyone,
I have obtained spectrogram image from an audio using following code. Need to find the signal from the spectrogram image. Since the process is two sided, it should be possible but I am not sure how can I do that. Link for the guide: https://www.mathworks.com/help/signal/ref/stftmag2sig.html
clear all
close all
clc
[y,Fs]=audioread('audio2.wav');
sound(y,Fs) %To hear the sound
ty = (0:length(y)-1)/Fs;
wind = hamming(128);
olen = 64;
nfft = 1024;
stft(y,Fs,'Window',wind,'OverlapLength',olen,'FFTLength',nfft);
s=stft(y,Fs,'Window',wind,'OverlapLength',olen,'FFTLength',nfft);
saveas(gcf,fiugure,png);

Antworten (0)

Kategorien

Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by