Reconstructing an Audio Signal from Spectrogram Image

조회 수: 7 (최근 30일)
Fareed Jamali
Fareed Jamali 2021년 4월 7일
편집: Fareed Jamali 2021년 4월 7일
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);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by