Questions tagged [librosa]

librosa is a python package for music and audio analysis.

Following are some of the features of librosa

  • Load audio input
  • Compute mel-spectrogram, MFCC, delta features, chroma
  • Invert mel-spectrogram, MFCC or chroma back to waveform
  • Locate beat events
  • Compute beat-synchronous features
  • Display features
  • Save beat tracker output to a CSV file

For detailed information and examples, visit the librosa documentation.

See also the official Github page.

750 questions
1
vote
1 answer

module not found error whle using librosa keyword

Exception has occurred: ModuleNotFoundError No module named 'numba.decorators' File "C:\Users\prasa\OneDrive\Desktop\Python\Untitled-1.py", line 3, in import librosa
1
vote
0 answers

Which MediaRecorder output format is compatible with librosa?

For one part of the Android app I am developing, I am wanting to perform some analysis (probably only an STFT) on a previously recorded speech signal. So far I used the MediaRecorder with THREE_GPP as the OutputFormat for recording. I was then…
1
vote
0 answers

Any way to Librosa.load an audio file from a url?

I am trying to use Librosa to load an audio from a url and my current solution is to just download the file then open it. I want to be able to run the program on a cloud service with no local storage but I would need a way to load from the url…
1
vote
0 answers

Error opening file because of an unknown format

I read some Audio file, labeled them, and together with their path, save the path and emotion of each Audioo file in a csv file. Now I want to read their path from the file and open them but I get this…
Niboo
  • 11
  • 5
1
vote
1 answer

Why does multiplying audio signal amplitude by any coefficient doesn't change it?

Suppose you have the following float32 audio representation loaded from any wav file using the librosa package: import librosa wav_x_path = "any_wav_filepath.wav" wav_source, _ = librosa.load(wav_x_path, sr=16000) If you then will try to play this…
Dmitry Chebakov
  • 348
  • 3
  • 11
1
vote
1 answer

Python sndfile library not found on newly installed Mac

(my first post here) I have a problem with the librosa python library, which produces the following error. OSError: sndfile library not found. I installed the librosa library and the SoundFile library with pip install and with conda install -c…
jonasblome
  • 21
  • 4
1
vote
1 answer

FutureWarning of librosa!: From version 0.10 passing these as positional arguments will result in an error

import numpy as np import librosa, librosa.display import matplotlib.pyplot as plt # MFCCs # extract 13 MFCCs MFCCs = librosa.feature.mfcc(signal, sample_rate, n_fft=n_fft, hop_length=hop_length, n_mfcc=13) # display…
1
vote
0 answers

find pitches per frame from audio vector using Python

I'm working on audio analysis project, my input audio y has been converted to audio vectors, output of y: array([-0.00085973, -0.00062583, -0.00042983, ..., 0.00038916, 0.00024691, 0.00010018], dtype=float32) I have used those parameters…
alex
  • 21
  • 3
1
vote
0 answers

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('drive/MyDrive/Proj_NN/samples/'+wav_file,…
LouayM
  • 11
  • 1
1
vote
0 answers

Python Librosa: How to create a stereo wav from mono?

I've tried a few suggestions from stackoverflow but unfortunately I can't get them to save as a valid wav file. When i try to open them they don't load properly or I get the following error. Any help will be greatly appreciated! "Error opening…
1
vote
0 answers

librosa load --> ValueError("frames must be specified for non-seekable files")

My python version is 3.6, librosa version is 0.7.0 I read wav file using librosa library. y,fs = librosa.load("file1.wav") Traceback (most recent call last): File "", line 1, in File…
Susan
  • 431
  • 1
  • 4
  • 16
1
vote
0 answers

external libraries on lambda - is efs mount and layer working in different?

I'm currently trying to use python librosa package on AWS lambda and following this blog. https://gianlucazuccarelli.medium.com/librosa-and-aws-lambda-20e48f23b57e According to this blog, even after installing the librosa package on mounted EFS, the…
1
vote
0 answers

How do I use the audio embeddings from Google Audioset for audio classification?

I have extracted audio embeddings from Google Audioset corpus (https://research.google.com/audioset/dataset/index.html). The audio embeddings contain a list of "bytes_lists" which is similar to the following feature { bytes_list { value:…
Sabid Habib
  • 419
  • 1
  • 4
  • 16
1
vote
0 answers

plot power spectrum of a signal with wavelet transform

Using this dataset https://philharmonia.co.uk/resources/sound-samples/ I'm trying to plot the power spectrum of note played by a specific instrument. I'm using librosa to load the audio file and get some information with this code import…
JayJona
  • 469
  • 1
  • 16
  • 41
1
vote
2 answers

Remove noise from vocals of a song python

I'm trying to separate vocals from a song using a deep learning model. The output is not wrong, but some extra noises cause the signal to sound bad. The following is 3 seconds of the output file where the noise exists (the areas with a rectangle are…
Morez
  • 2,085
  • 2
  • 10
  • 33