Audio Feature Extraction from .MAT file instead of .Wav files

5 views (last 30 days)
Hello,
I have snore signal that is sampled at 10hz stored in a .mat files. But in order to extract audio features such as MFCC. we need audioin mfcc(audioIn,fs) which is obtained from a wav file [audioIn,fs] = audioread(wavfile.wav)
Is there a way where can I directly compute MFCC from the .mat files or Do i need to convert each .mat file into .wav file and then calculate audioIn.
Also , I am not familiar how to convert .mat files in .wav files keeping the sampling rate (10hz) common. Could somebody help
Thank you.

Answers (1)

Jonas
Jonas on 2 Jul 2021
if you have already stored the audio data in a mat file (meaning you have it already in an ordinary matlab variable) you can just use the mffc() directly with that variable. audioread() just converts wav to a normal matlab variable which you, in this case, already have

Community Treasure Hunt

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

Start Hunting!