Skip to content
Advertisement

Tag: librosa

How to display audio at the right side of matplotlib

The following code display the image and audio in the top-bottom style: Here is the test code: Is it possible for changing the “top-bottom” style to “left-right” style for displaying the audio at the right side of the plt figure? Answer You can use a GridspecLayout which is similar to matplotlib’s GridSpec. In order to direct to output into the

Python Tensorflow Shape Mismatch (WaveNet)

I was trying to run a WaveNet, which is specified in https://github.com/mjpyeon/wavenet-classifier/blob/master/WaveNetClassifier.py. Part of my code is as follows: Here, self.input_shape=X_train.shape and self.output_shape=(11,) It successfully printed out the model’s summary, but was outputting the following error: However, my X_train has a shape of (19296, 110250). I was trying to figure out on why the X_train has been reshaped from (19296,

Librosa – Audio Spectrogram/Frequency Bins to Spectrum

I’ve read around for several days but haven’t been to find a solution… I’m able to build Librosa spectrograms and extract amplitude/frequency data using the following: However, I cannot turn the data in D and freq_bins back into a spectrum. Once I am able to do this I can convert the new spectrum into a .wav file and listen to

Sound feature attributeError: ‘rmse’

In using librosa.feature.rmse for sound feature extraction, I have the following: It gives me: What’s the right way to get it? Sample file: https://www2.cs.uic.edu/~i101/SoundFiles/CantinaBand3.wav Answer I am guessing you are running one of the latest librosa. If you check the changelog for the 0.7, you will notice that rmse was dropped in favour of rms. Simply run: and you should

Advertisement