Questions tagged [mfcc]

Mel-Frequency Cepstral Coefficients. The name given to an alternate representation of speech signals based on its frequency content. Very popular way to represent a speech signal as a feature vector. Used primarily for speech recognition tasks.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

from python_speech_features import mfcc (Import "python_speech_features" could not be resolved)

I am trying to run this line of code: from python_speech_features import mfcc I have already imported python speech features: Requirement already satisfied: python_speech_features in... However, I am ...
Tersa Herghmas's user avatar
0 votes
0 answers
21 views

How can praat get formant data from audio?

I'm making a program that extracts formants similar to praat. However, when I applied both lpc and mfcc, I don't think the accuracy is as good as praat. How can I extract the formant exactly like ...
ddddewang's user avatar
0 votes
0 answers
66 views

Error using trainNetwork . Number of observations in X and Y disagree

I'm trying to train a neural network but get Error using trainNetwork. Number of observations in X and Y disagree. I am not able to understand where is the problem. XTrain is a 607x39x367x1 double ...
user22238671's user avatar
0 votes
1 answer
45 views

How can i change the the tensor value into normal text data?

this is a function that return acoustic feature, inside there is function load_npy_file to get features from the given path When i tried to call it directly from it function, it work well but when i ...
Trizzlee's user avatar
0 votes
0 answers
16 views

matlab error about the speech recognition by using pitch and mfcc

folder1 = fullfile(matlabroot,'SpeakerRecognition','training') folder2 = fullfile(matlabroot,'SpeakerRecognition','validation') adsTrain = audioDatastore(folder1,"IncludeSubfolders",...
acemal's user avatar
  • 1
0 votes
0 answers
51 views

Why does Librosa.core.spectrum.stft divide the signal into frames without padding?

I am in the process porting MFCC algorithms from python libraries to C. Currently, I have completely ported python_speech_feature's mfcc function, and have moved on to librosa. However, once I got to ...
FloopyBeep's user avatar
3 votes
1 answer
159 views

Understanding MFCC output for a simple sine wave

I generate a simple sine wave with a frequency of 200 and calculate an FFT to check that the obtained frequency is correct. Then I calculate MFCC but do not understand what its output means? What is ...
codeDom's user avatar
  • 1,633
0 votes
0 answers
36 views

Is there any way to reverse normalization of mfcc? I have used CMVN of SpeechPy to normalize the mfcc

Here, I have normalized the mfcc: data_2 = librosa.feature.mfcc(y=data_2, n_mfcc=no_mfcc, sr=rate_data_2) data_2 = speechpy.processing.cmvnw(data_2,win_size=301,variance_normalization=True) I need a ...
Dhiraj Baruah's user avatar
0 votes
0 answers
56 views

Differences in MFCC values

I wrote my own code to extract MFCC, the algorithm is as follows: data from file.wav pre-emphasis according to the expression x'[n] = x[n] - 0,97 * x[n-1] framing signal, frame length 480, overlap ...
Jailer's user avatar
  • 1
0 votes
0 answers
59 views

MFCC plot in real-time audio processing

I am trying to create a program that takes an input sound/voice from the microphone and based on this input, it plots the mfcc images in rolling window. The thing is, when i run my code, no input is ...
Kleopatra Karapanagiotou's user avatar
2 votes
0 answers
76 views

Why does applying the hamming window to framed data show a consistent difference in behavior between python and C?

This is the code I wrote in python that extracts data from a .wav file, applies pre-emphasis, divide into frames of 0.025ms with 0.010 stride, and applies a hamming window: import scipy.io.wavfile as ...
FloopyBeep's user avatar
1 vote
0 answers
120 views

Applying Discrete Cosine Transform to Mel Spectrogram to Obtain MFCC

So I'm trying to replicate the process of obtaining MFCC from an audio file. So far I have obtained the Mel Spectrogram, and the last step is to perform Discrete Cosine Transform to the Mel ...
Naufal Rifqi Habibie's user avatar
0 votes
0 answers
80 views

Mel Spectrogram Implementation in Python

First of all, I am a beginner and I'm trying to replicate the process of obtaining Mel Spectrogram from an audio file. For the first step, I want to try windowing my signal using Hanning or Hamming ...
Naufal Rifqi Habibie's user avatar
0 votes
0 answers
394 views

How to loop through multiple audio files to extract MFCC features to feed to CNN model?

need some help with MFCC feature extraction on librosa. My goal is to calculate MFCC from 160 audio files and use the output to train a convolutional neural network. But I'm having some issues with ...
wangowango's user avatar
0 votes
1 answer
620 views

IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 3301

I'm trying to train a model for speaker identification using MFCC and HMM, during run time I got the following error line 55, in <module> X = X_train[y_train == speaker] IndexError: boolean ...
MStudent's user avatar
0 votes
0 answers
47 views

Preprocessing of audios for Locality Search Hashing(LSH) algorithm

I am working on designing LSH algorithm for similarity detection in audios. I am using librosa module to extract MFCC of audios which returns multi-dimensional list (20 rows x n columns). Currently ...
Muhammad Shamil Umar's user avatar
0 votes
0 answers
74 views

Using DataSketch to find similarity between 3 audios using mfccs

So i am using the datasketch library to find if the audio 2 and audio 3 are similar to the audio 1. However even at the threshold=1 where it should only output audios that are 100% same, it shows the ...
Faizan Ul Haq's user avatar
0 votes
0 answers
74 views

What has to be an input shape for a CNN using MFCC?

I am doing some classification on audio data using MFCC. I have extracted MFCCs from a few audio samples and I would like to pass them to a CNN, however I have hard time understanding what input_shape ...
CuriousPan's user avatar
0 votes
0 answers
32 views

in Machine Learning for Audio Classification, in stage of taring our model we stuck with an error

we are working on machine learning for audio classification. we want to classify some human voices with The MFCC feature. ValueError: Shapes (None, 10) and (None, 2) are incompatible The relevent ...
EHIJAS KV's user avatar
1 vote
0 answers
121 views

Erorr in Tansorflow (tf.data.Dataset.from_tensor_slices.map()) with librosa (librosa.load())

In speech translation, I attempted to map an audio preprocessing function using librosa that was used mfcc and tensorflow.data.Dataset.from_tensor_slices.map, but there was an error. Please assist... ...
Ahmed_El-Dak's user avatar
2 votes
0 answers
252 views

Mel-spectrogram vs MFCC for Automatic Speech Recognition

I am trying to do Automatic Speech Recognition using CNN. For the feature extraction I am using MFCC. I have read many articles, some of them say with lot of data and classifiers like CNN, mel ...
A. Gehani's user avatar
0 votes
1 answer
241 views

Generate histogram plot for each MFCC coefficient in python

How to go about generating the histogram plot in python for each of the MFCC coefficients extracted from an audio file. As shown here from the Matlab implementation, a histogram for each MFCC ...
Joe's user avatar
  • 377
0 votes
0 answers
188 views

Correct way to use librosa mfcc with Random Forest

I would like to know what is the best approach in order to use librosa.feature.mfcc feature extraction in a Random Forest classifier? 2 cases is as follows: Case 1: I have 1000 audio files and use the ...
Joe's user avatar
  • 377
0 votes
1 answer
48 views

Is there any deep learning library that gives option to calculate mfcc as the layer of deep learning mode

I want to calculate mfcc as a layer of deep learning model, as Kapre gives option to calculate Log spectrograms or mel spectrograms as a layer of deep learning model. can anybody suggest any deep ...
Shadab Hashmi's user avatar
1 vote
1 answer
2k views

Normalizing the MFCC

do i need to get the normalized mel spectogram from librosa library or I dont need it to be normalized and should be ready for the CNN model ? I tried it without normalizin the values of mel ...
ruru evangelista's user avatar
1 vote
1 answer
734 views

torchaudio mfcc set too high n_mels

I am currently working on pytorch for speech recognition model. When I used torchaudio.transforms.MFCC(sample_rate=16000, n_mfcc=40) for data preprocessing, the warning saying n_mels(128) is set too ...
ushmon's user avatar
  • 19
0 votes
0 answers
213 views

IndexError: list index out of range while using multi-valued command line arguments

I have two codes: one for preprocessing an audio file and another for generating the MFCC. The MFCC code has 3 multi-valued command line arguments (frame length, frame step and fft length). I have ...
A. Gehani's user avatar
1 vote
0 answers
300 views

How to convert a mfcc file to wav file to listen to what it is in python

Im using a gan which generates music. I have converted the wav files into Mel Frequency Cepstral Coefficients by using python_speech_features’s.mfcc. the code for that: signal, rate = librosa.load('...
LouayM's user avatar
  • 11
0 votes
1 answer
572 views

Running python script with multiple values of command line arguments

I have a python script for pre-processing audio and it has frame length, frame step and fft length as the command line arguments. I am able to run the code if I have single values of these arguments. ...
A. Gehani's user avatar
0 votes
1 answer
217 views

Librosa failing to plot mfcc generated

I'm was being able to generate MFCC from system captured audio and plot it, but after some refactor and configuring Tensorflow with CUDA. I used Librosa to generated the mfcc, matplotlib.pyplot with ...
Pedro Bohlmann's user avatar
0 votes
0 answers
14 views

Specify number of filter banks in Librosa MFCC [duplicate]

How can you specify the number of filter banks in Librosa MFCC feature?: librosa.feature.mfcc(y=None, sr=22050, S=None, n_mfcc=20, dct_type=2, norm='ortho', lifter=0, **kwargs) From the documentation,...
Joe's user avatar
  • 377
0 votes
1 answer
840 views

How to use MFCC feature extraction method while fine-tuning the Wav2Vec2 pretrained model?

I am going through some blogs on fine-tuning the Wav2Vec2 pretrained model on my custom dataset. Below are the resources for the same. https://colab.research.google.com/github/huggingface/notebooks/...
surya's user avatar
  • 1
0 votes
0 answers
185 views

How to fix this Value Error | ValueError: could not broadcast input array from shape (2048,2050) into shape (2048) | line 10 and 16

def frame_audio(audio, FFT_size=2048, hop_size=10, sample_rate=44100): # hop_size in ms audio = np.pad(audio, int(FFT_size / 2), mode='reflect') frame_len = np.round(sample_rate * hop_size / 1000)....
Mheey's user avatar
  • 1
0 votes
0 answers
226 views

Storing Spectrograms is very storage expensive

I'm very desperate with a coding/architecture problem here, maybe you can help me. I currently try to compare different representations of data in the music genre classification with each other (...
MadMac's user avatar
  • 1
0 votes
1 answer
2k views

Save mel spectrogram of audio files without displaying their repsective plots

I want to save mfcc spectrograms plot without displaying in Jupyter notebook output. I've tried to save mfcc spectrograms using following code, despite plots are deflecting in output. import librosa....
anonymous_abhi's user avatar
0 votes
2 answers
246 views

How to make .wav file from MFCC sequence

I want to know how to make .wav file from MFCC sequence. import librosa import soundfile as sf a,sr = librosa.load(filename)# filename is *.wav y = librosa.feature.mfcc(y=a, sr=sr)#sr is 22050 I ...
laforia's user avatar
0 votes
1 answer
820 views

What is the number of Mel Filters used in librosa MFCC function?

librosa.feature.mfcc(y=None, sr=22050, S=None, n_mfcc=20, dct_type=2, norm='ortho', lifter=0, **kwargs) The librosa MFCC function does not contain an parameter to be passed for the number of mel ...
Rasula 's user avatar
0 votes
1 answer
1k views

Using MFCCs and Mel-Spectrograms with CNN

I would like to get some feedback as to why in a lot of research papers that the researchers pass MFCCs through a Convolution Neural Network (CNN)? Inherently, the CNN in itself is a feature ...
Joe's user avatar
  • 377
1 vote
0 answers
302 views

MFCC example problem: [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000271380> F8BB1C28-BAE8-11D6-9C31-00039315CD46

I am using MFCC to Wekinator example by Rebecca Fiebrink, 2016, and I found that it is quite outdated so I am trying to fix it. I have fixed most of the problems but only have one error that’s not ...
夏磊蕾's user avatar
0 votes
1 answer
484 views

Confused about MFCC processing

So I extracted an audio file feature with MFCC using Librosa library in python. This is what code looks like: signal, sample_rate = librosa.load('../audio_train/down/00176480_nohash_0.wav', sr=22050) ...
Lif's user avatar
  • 35
0 votes
1 answer
674 views

How to process audio bytes to extract MFCCs from a live audio stream?

I want to stream live audio from an inbuilt microphone and have been successful doing so using PyAudio and Sounddevice. Both the approaches are fine, but the main issue is about feature extraction. ...
Deep's user avatar
  • 636
2 votes
1 answer
2k views

Is my output of librosa MFCC correct? I think I get the wrong number of frames when using librosa MFCC

result=librosa.feature.mfcc(signal, 16000, n_mfcc=13, n_fft=2048, hop_length=400) result.shape() The signal is 1 second long with sampling rate of 16000, I compute 13 MFCC with 400 hop length. The ...
Rasula 's user avatar
0 votes
0 answers
54 views

Stack audio frames for classification

I have audio files for which I extracted the mfcc features, and I ended up with train dataset of size 3082092 frames by 30 mfcc: torch.Size([3082092, 31]). What is the best way to stack 10 frames to ...
lima0's user avatar
  • 111
0 votes
1 answer
283 views

Can MFC application with Multibyte character-set enable supports UTF-8 encoding strings?

I have a legacy MFC application which is on Multibyte character set enabled. Now requirement is to support UTF-8 character-set too. Changing the whole application in Unicode environment is too big and ...
rahul's user avatar
  • 59
0 votes
1 answer
151 views

Match MFCC to video frames

I extracted video frames and mfcc from a video. I got (524, 64, 64) video frames and a shape of (80, 525) mfcc. The number of frames the data match but the dimensions are inversed. How can I make ...
Vitalii Kyzym's user avatar
0 votes
1 answer
438 views

Error occurred when extracting features using MFCC: Value Error: can't extend empty axis 0 using modes other than 'constant' or 'empty'

I am working on speech recognition system and I took the code from GitHub. Made some additions in that code here: DATASET_PATH = "F://MS//MS-4//LibriSpeech" *JSON_PATH = "data_10.json&...
Muhammad Arslan's user avatar
1 vote
0 answers
3k views

n_fft =2048 value is too small for length and can't extend empty axis 0 using modes other than 'constant' or 'empty

this is the error Warning (from warnings module): File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\librosa\core\spectrum.py", line 222 warnings.warn( UserWarning: ...
Muhammad Arslan's user avatar
0 votes
1 answer
296 views

can I convert audio to MFCC as RGB image and then use the image in CNN for audio classification

I am currently working on audio speech classification and the audios length that I have vary between 5 sec up to 5 min, my question is can I convert my audio to MFCC as RGB image and then use CNN with ...
Zain Frayha's user avatar
0 votes
0 answers
54 views

audio data, how to get tabular data from audio data python

I currently working with audio data. my target now to prepare the audio data in term of tabular data therefore I can perform analysis and ML. anyone can help how to transform audio data into tabular ...
que23's user avatar
  • 27
1 vote
1 answer
468 views

Speech Recognition with MFCC and DTW

So, Basically i had tons of data which word-based dataset. Each of data is absolutely having different length of time. This is my Approach : Labelling the given dataset Split the data using ...
Andro Aprila's user avatar

1
2 3 4 5
7