code for triangular filter banks and MFCC

조회 수: 2 (최근 30일)
DOORYODHUN AHKU
DOORYODHUN AHKU 2021년 7월 11일
댓글: jibrahim 2021년 7월 14일
hi,
I having problem to create code for triangular filter banks and mfcc for the attached audio file. I would be much gratful if you could help me .im so deperate. Was working on it since a month but my code did not work.
Thank you
Kinds
Dan

채택된 답변

jibrahim
jibrahim 2021년 7월 12일
There are two functions in Audio Toolbox that you can use for this task:
mfcc: Computes MFCC codefficients for you
designAuditoryFilterBank: Designs the triangular filter bank
  댓글 수: 3
DOORYODHUN AHKU
DOORYODHUN AHKU 2021년 7월 14일
Hi Ibrahim,
I will need a bit of help.
I did the following below and i got an error message saying 'designAuditoryFilterBank' requires Audio Toolbox.
Could you please advise
Thank you
Dan
fs = 48000;
fb = designAuditoryFilterBank(fs)
filterBank = designAuditoryFilterBank(fs)
numBands = size(fb,1) %#ok<NASGU>
numBands = 32
numPoints = size(fb,2) %#ok<NASGU>
numPoints = 513
[audioIn,fs] = audioread("mif_02484_00047480027.wav");
win = hamming(1024,"periodic");
noverlap = 512;
fftLength = 1024;
[S,F,t] = stft(audioIn,fs, ...
"Window",win, ...
"OverlapLength",noverlap, ...
"FFTLength",fftLength, ...
"FrequencyRange","onesided");
PowerSpectrum = S.*conj(S);
[fb,cf] = designAuditoryFilterBank(fs, ...
"FFTLength",fftLength, ...
"NumBands",numBands, ...
"FrequencyRange",range, ...
"Normalization",normalization);
plot(F,fb.')
grid on
title("Mel Filter Bank")
xlabel("Frequency (Hz)")
jibrahim
jibrahim 2021년 7월 14일
Dan,
the function is part of the Audio Toolbox product, so you need Audio Toolbox to be available.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by