Read in a wav file and get amplitudes

I need to extract the amplitudes of a wav file and want to do it as a simple commandline app. What's an easy way to do that? Cross-platform would be great. Needs to at least work on windows. You...

how to gracefully stop python sounddevice from within callback

I'm using Python sounddevice and PySoundFile to play audio "the hard way", that is, using a non-blocking callback. (Tip of the hat to https://stackoverflow.com/users/500098/matthias and crew --...

Converting .aiff audio file to .wav

I'm trying to convert some audio files using a python script. The source folder contains both .wav and .aiff audio files, with different bitrates and sampling rates. INPUT Files example I need...

How to convert a 24-bit wav file to 16 or 32 bit files in python3

I am trying to make spectrogram's of a bunch of .wav files so I can further analyze them(in python 3.6), however, I keep getting this nasty error ValueError: Unsupported bit depth: the wav file...

No module named soundfile

Whenever I try to import soundfile I get the error ImportError: No module named soundfile I installed pysoundfile seemingly without trouble: $ sudo pip install pysoundfile The directory...

Can't write floating point aiff file in Python

I'm an audio developer and would like to read and write 32 bit floating point audio files from python for test purposes. After hours of farting around, I've managed to realize that the problems...

Google App Engine: "Error: no module named numpy.distutils.core" while deploying an app

I've read several questions about deploying Python applications on GAE, but I still couldn't manage to make my own work. First I thought it was because of my requirements.txt file and my lib...

is it possible to import soundfie in Python 2.7?

I'm doing import soundfile as sf and I get the error: ImportError: No module named soundfile I'm using Python 2.7 in Windows 10. I already did: pip install pysoundfile pip install conda pip...

Can't import soundfile

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 conda...

How can I get PySoundfile to run on Google Cloud Platform flexible environment?

I have a simple application that I'd like to deploy to a GAE standard or flexible environment, and it requires the generation of simple audio files. I have code that runs well locally (on the dev...

Can't import soundfile python

while using import soundfile on wither python3 or python I am getting: Traceback (most recent call last): File "", line 1, in File...

Cannot install Gensim in Conda env - noarch directory not found

I am working on a remote server in a Conda environment. So I had previously installed Gensim and had been using it but the other day I ran into this error: No big deal I'll just !conda install...

ModuleNotFoundError for psychopy

I’m new to Python and Psychopy. I’ve tried running the following: print("foo") from psychopy import visual, core, gui, event print("bar") Both from the command line and inside the Spyder...

Append data to a wave soundfile without loading its currrent content

I'm trying to append data to a sound file without loading its contents(because it may have gigabytes of data), I'm using pysoundfile library currently, I've figured out a way to do it for wave64,...

In docker : OSError: ctypes.util.find_library() did not manage to locate a library called 'sndfile'

I am using Docker(Linux Container) on Windows 10 Pro machine.I created a docker container to run my flask application and have mentioned the required libraries in the requirements.txt file. When i...

RuntimeError: cannot cache function '__jaccard': no locator available for file '/usr/local/lib/python3.7/site-packages/librosa/util/matching.py'

I am dockerising the flask application on windows10 machine.I get the below error after the docker run RuntimeError: cannot cache function '__jaccard': no locator available for file...

Flask Application on docker ,Windows 10 pro - OSError: [Errno 13] Permission denied

I am using Docker(Linux Container) on Windows 10 Pro. I created a docker build for the flask application. After i run the application i get the PermissionError: [Errno 13] Permission denied:...

Use JavaScript to record audio as .wav in Chrome

I am building a webpage that records audio from the user's device and will be sending it to Microsoft's Cognitive Speech Services for a Speech-to-Text conversion. So far, I have been able to...

Pysoundfile library not importing

I'm new to Python (I installed the Anaconda distribution a couple weeks ago on my windows 10 machine) and am having trouble getting the pysoundfile library to import from the Spyder ipython...

Stream GSM codec audio from network to speakers on the fly

i doing a VoIP software in python, i try to recreate a specific ham radio program protocol, it uses GSM audio codec. as python has no easy way to play gsm files, i however managed to at least...

PermissionError: [Errno 13] Permission denied failure

I have never used python before and I want to build a project I found on github but I have not solved a problem there for 2 hours. I don't think it's a problem that I've installed all the packages...

librosa.load() takes too long to load(sample) mp3 files

I am trying to sample (convert analog to digital) mp3 files via the following Python code using the librosa library, but it takes too much time (around 4 seconds for one file). I suspect this is...

Conda Installation Fails for PySoundFIle

I'm trying to understand why my conda installation of pysoundfile via the following command fails conda install -n condaenv -c conda-forge pysoundfile The error message seems to complain about...

No Backend error despite of downloading ffmpeg and setting path variable python

I am having a no backend error in my python code to open an audio file using librosa module. I have downloaded ffmpeg and seted environment but still I am getting no backend error. I am getting...

Librosa cannot load from BytesIO

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 =...

Librosa read MP3 audio from URL

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...

Can´t use librosa with python 3

I have installed librosa correctly with pip3 on ubuntu subsystem on windows, but when I try to execute a simple program like this one: import librosa data, sr =...

Can't load audio files with librosa

Unless I use one of librosa's native 'example' audio files which are in some format '.ogg', I cannot load audio. Every github issue and SO answer says I need to install ffmpeg. I found a python...

How can I process OPUS format with Librosa?

I am trying to generate spectrograms by using Librosa. When I was working with the .wav format file it was working fine. But I changed the format to OPUS audio codec and tried to run the same...