Reconstructing an Audio Signal from Spectrogram Image

4 ビュー (過去 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 Center および File ExchangeTime-Frequency Analysis についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by