Convolve vector with audio file

조회 수: 8 (최근 30일)
Matthew Strunks
Matthew Strunks 2020년 12월 16일
답변: Swetha Polemoni 2020년 12월 21일
Audio file: y = 537146x2 double
function: hx=1x13839 double
I need to convolve an audio file with the transfer function of an impulse response of an FIR filter to remove a range of frequencies, but I'm not sure how when the audio file vector is so much larger than the function vector.

답변 (1개)

Swetha Polemoni
Swetha Polemoni 2020년 12월 21일
Hi Matthew Strunks
It is my understanding that you want to convolve your audio signal and FIR filter. Since convolution in time domain is equal to multiplication in frequency domain, you can try first converting both into frequency domain and multiply.
For converting audio signal to frequency domain "stft" (short time fourier transform) can be used. Since stft applies fft on windowed audio signal, characteristiics of audio signal is preserved even if the length of audio signal is large.
For coverting your filter into time domain, "fft" can be used.
Feel free to experiment with window size, so that the result is same as you expected.

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by