librosa.feature.melspectrogram to generate the spectrogram of wav file. But there are some problems:
1. What's the window of the function? It seems that you don't mention the type of window in the document page: http://librosa.github.io/librosa/generated/librosa.feature.melspectrogram.html, such as Hamming window. etc. array([[ 2.891e-07, 2.548e-03, ..., 8.116e-09, 5.633e-09], [ 1.986e-07, 1.162e-02, ..., 9.332e-08, 6.716e-09], ..., [ 3.668e-09, 2.029e-08, ..., 3.208e-09, 2.864e-09], [ 2.561e-10, 2.096e-09, ..., 7.543e-10, 6.101e-10]])
is the elements like : [ 2.891e-07, 2.548e-03, ..., 8.116e-09, 5.633e-09], [ 1.986e-07, 1.162e-02, ..., 9.332e-08, 6.716e-09]
refers to the amplitudes of different frequency in different and each list element represent a series of amplitude value in different time?
Hello, I'm now usinglibrosa.feature.melspectrogramto generate the spectrogram of wav file. But there are some problems:1. What's the window of the function? It seems that you don't mention the type of window in the document page:http://librosa.github.io/librosa/generated/librosa.feature.melspectrogram.html, such as Hamming window. etc.
2. What's the scale division of "Hz" axis? Or it can be change through the parameters of the function? Sorry for my poor knowledge of STFT, if you can tell me how to calculate it I will be very appreciate!
3. This function returns S, a numpy array, and what's the meaning of this matrix?In your example:array([[ 2.891e-07, 2.548e-03, ..., 8.116e-09, 5.633e-09], [ 1.986e-07, 1.162e-02, ..., 9.332e-08, 6.716e-09], ..., [ 3.668e-09, 2.029e-08, ..., 3.208e-09, 2.864e-09], [ 2.561e-10, 2.096e-09, ..., 7.543e-10, 6.101e-10]])is the elements like : [ 2.891e-07, 2.548e-03, ..., 8.116e-09, 5.633e-09], [ 1.986e-07, 1.162e-02, ..., 9.332e-08, 6.716e-09]refers to the amplitudes of different frequency in different and each list element represent a series of amplitude value in different time?
I want to use this matrix to train a neural network but I don't know the meaning of this matrix.Thanks a lot!