librosa Questions
7
Solved
I am running a simple CNN using Pytorch for some audio classification on my Raspberry Pi 4 on Python 3.9.2 (64-bit). For the audio manipulation needed I am using librosa. librosa depends on the num...
2
Solved
I converted some audio files to spectrograms and saved them to files using the following code:
import os
from matplotlib import pyplot as plt
import librosa
import librosa.display
import IPython.d...
Huggins asked 10/4, 2020 at 1:4
3
Solved
I'm trying to write the Dockerfile for a small python web project and there is something wrong with the dependencies. I've been doing some search on the internet and it said that Librosa library re...
Main asked 15/4, 2020 at 17:52
4
I have an audio file and I want to split it every 2 seconds. Is there a way to do this with librosa?
So if I had a 60 seconds file, I would split it into 30 two second files.
3
I am using Python based audio library librosa to analyze musical audio tracks on note onset events. With this information I am slicing those tracks into several smaller, very short pieces / slices ...
3
I am trying to read Mp3 audio from URL using Librosa. I understand that Librosa first uses PySoundFile to load the audio and if that fails it then uses audioread.
I have the following code so far:
...
Engobe asked 1/7, 2020 at 4:26
2
Solved
In getting basic parameters of an audio file, by Wave:
import wave
data = wave.open('c:\\sample.wav', mode = 'rb')
params = data.getparams()
print params
It returns:
(1, 2, 4000, 160000, 'NONE...
6
import librosa
import librosa.display
import IPython.display
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import matplotlib.font_manager as fm
audio_path = 'rec.wav'...
6
Referring to this link: https://aqibsaeed.github.io/2016-09-03-urban-sound-classification-part-1/, I am trying to make the same waveplot figure, however,i run the code through .py, there is the err...
10
Solved
I am trying to import librosa, but I am thrown with this error:
/home/lakshya/anaconda3/envs/tff_env/lib/python3.9/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX...
3
Solved
MFCC Python: completely different result from librosa vs python_speech_features vs tensorflow.signal
I'm trying to do extract MFCC features from audio (.wav file) and I have tried python_speech_features and librosa but they are giving completely different results:
audio, sr = librosa.load(file, s...
Charleton asked 2/3, 2020 at 15:55
2
I am currently trying to create a large dataset for deep learning consisting of a lot of compressed mp3 files stored together so I dont have 100k files that I have to load individually.
x = b''
wit...
Verleneverlie asked 26/6, 2020 at 19:8
4
I installed librosa, and now im trying to import it
import librosa
This throws me this error for some reason
Traceback (most recent call last):
File "<stdin>", line 1, in <modu...
3
Solved
I am using this algorithm to detect the pitch of
this audio file. As you can hear, it is an E2 note played on a guitar with a bit of noise in the background.
I generated this spectrogram using ST...
Misprize asked 9/5, 2017 at 19:5
3
I've been trying to install a package through pip on my rpi 3 model B
my operating system is raspbian. Debian based pip version is 21.0.1 and python version is 3.7.4
the command I'm using is:
pytho...
Och asked 2/2, 2021 at 11:24
2
In case of vocal separation using Librosa, the vocal and background music can be plotted separately but I want to extract the audio from vocal part and the spectrum of vocal part is located in a va...
5
Solved
Explanation
I want to be able to sort a collection of sounds in a list based on the timbre(tone) of the sound. Here is a toy example where I manually sorted the spectrograms for 12 sound files that...
Brakpan asked 28/10, 2020 at 20:5
3
I'm using the librosa library to convert music segments into mel-spectrograms to use as inputs for my neural network, as shown in the docs here.
How is this different from MFCCs, if at all? Are th...
Funk asked 25/12, 2018 at 20:22
2
I'm doing:
import librosa
D = librosa.stft(samples, n_fft=nperseg,
hop_length=overlap, win_length=nperseg,
window=scipy.signal.windows.hamming)
spect, _ = librosa.magphase(D)
audio_signal =...
3
Solved
I have recently tried to install librosa on Windows using pip install librosa. Nevertheless, this error appears:
Cannot uninstall 'llvmlite'. It is a distutils installed project and
thus we can...
5
Currently I am working on voice recognition where I wanted to use Librosa library.
I install librosa with the command on ubuntu:
conda install -c conda-forge librosa
But when I run the code I got ...
Abstractionism asked 30/6, 2020 at 13:0
3
I'm working on a Python project with the Librosa sound editing library, which makes use of Numba. Every time I call a Librosa function (in this case, pitch_shift), my PyCharm console window spits o...
2
Solved
I'm using Anaconda and I'm trying to import soundfile/pysoundfile.
I installed the package by running
conda install -c conda-forge pysoundfile
and I think it succeeded because when I run
...
3
Solved
I'm trying to open a AudioFile in Librosa. Trim it, and then modify it using pydub. This is my code:
sound = AudioSegment.from_file(filePath)
samples = sound.get_array_of_samples()
arr = np.array(...
1
I am not able to install librosa in Ubuntu 18.04. I have tried the following commands, all are failed.
pip install librosa
python3.8 -m pip install librosa
sudo pip install librosa
pip install -u ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.