How to write wav file with 32-bit float data?

I would like to be able to write PCM wav files with 32-bit floating point samples. This seems to be a valid format since libsndfile claims to support it. However, if I specify in my header a...

Importing sound files into Python as NumPy arrays (alternatives to audiolab)

I've been using Audiolab to import sound files in the past, and it worked quite well. However: It doesn't support some formats, like mp3, because the underlying libsndfile refuses to support...

How to fix an UnsatisfiedLinkError (Can't find dependent libraries) in a JNI project

I'm working on a Java project that uses the JNI. The JNI calls a custom library that I've written myself, let's say mylib.dll, and that depends on a 3rd party library, libsndfile-1.dll. When I...

Gem installation ruby-audio failing

I have cloned an existing repository and am now running bundle install - for some reason it fails at the ruby-audio gem. Installing ruby-audio (1.6.1) with native extensions...

Can't import audiolab in python

I installed audiolab from this source: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab Those are the only windows binaries for python 2.7 I was able to find. When I call from scikits...

VS2012 Error: The application was unable to start correctly (0xc000007b)

I received the error "The application was unable to start correctly (0xc000007b)" after attempting to run my exe file of my C++ SFML 32-bit program I built in Visual Studio 2012. I statically...

writing to a wav file using libsndfile

I'm having trouble writing a short buffer into a wav file on my HD. I followed a few tutorials, but they all give different ways of doing it. Anyway, this is the way I implemented it but for some...

Linux mingw32 sfml cross compile for windows - missing dll files

I am compiling my C++ project in the following way: /usr/bin/i686-w64-mingw32-g++ -g -std=c++0x -Wall -I /home/bluszcz/dev/win64/SFML-2.1/include -L /home/bluszcz/dev/win64/SFML-2.1/lib...

Setting Environment variable in Visual studio C++project

I realize that similar questions were posted earlier but I need slightly different solution. I have VS2012 C++ project A.vcxproj,that has debug1 configuration( platform x64) , and it builds...

Playing sound in pyo and python

I am trying out the pyo for python. I installed the pyo for ubuntu using these commands from the homepage: sudo apt-get install libjack-jackd2-dev libportmidi-dev portaudio19-dev liblo-dev sudo...

Error Installing Scikits.audiolab

I'm trying to install scikits.audiolab with pip. I read this post, however, it looks like that user's problem was that they hadn't installed numpy. I can replicate their trace by uninstalling...

Link libsndfile source code with gcc

I just cloned libsndfile and created program.c file with the following contents: #include <stdio.h> #include <sndfile.h> main() { printf("hello world"); } My goal is to get this file to...

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

R hangs when ncdf4 nc_open is called in HPC cluster

I have started using R (R/3.5.1-foss-2018b) on an HPC server. It seems to work fine except when it has to deal with NetCDF files. I am using the nc_open function from ncdf4 package to read...

Trouble installing pycairo through pip3

I have been trying to install pycairo with pip3 on MacOs but whenever y try to do so this error appears: pip3 install pycairo Collecting pycairo Using cached...

FFmpeg giving me failed to open segment error. Trying to parse .wav file into 30-second files

Here is the command I used and the output when I try and parse the .wav file into 30-second clips: C:\Users\hmkur>ffmpeg -i C:\Users\hmkur\Desktop\Python\Transcribing_Audio\source\valve.wav -f...

Why does ffmpeg need DNS resolver as its dependencies?

I was installing FFmpeg and libav today using brew install ffmpeg libav when I noticed unbound in the dependencies list. It's very strange because unbound is DNS resolver and why ffmpeg would need...

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

I can't install libsndfile on visual studio

so I'm trying to write a program in Visual Studio (in C++) with use of libsndfile library, but I can't make it work. I have installed this library with vcpkg and when i try to run program from...

Unable to open audio file on Heroku using Librosa

I have a feature extraction REST API written in Python using the Librosa library (Extracting audio features), it receives an audio file through HTTP POST and responds with a list of features(such...

Librosa raised OSError('sndfile library not found') in Docker

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

Python setup.py egg_info Check the logs for full command output

I have Python 3.8. I run this the command C:\Users\desktop>python -m pip install scikits.audiolab on my CMD and I get the following error Collecting scikits.audiolab Using cached...

Playing a stereo .wav file with PortAudio & sndfile, output is fuzzy and pitched down / slowed

I've been writing some code to play back a stereo .wav file in c++ using PortAudio and sndfile, but the output sound is fuzzy and pitched down (pitch down is less of an issue for me but it may be...

I am getting "OSError: sndfile library not found" & "Unable to locate package libsndfile1" errors when deploying audio prediction model on Heroku

The objective is to deploy an audio prediction ML model on Heroku, which uses librosa library from python. The app.py file uses librosa library to extract features from the audio. When I try to...

Unable to install sndfile with pip

I need to install sndfile. I'm on a Jupyter notebook, Python interpreter on IBM Watson studio. I already installed the library libsndfile with !conda install -c conda-forge libsndfile. When I call...

how to include Flite in C++ project with cmake?

I've to use a TTS engine in my application and I tried to use Flite. I've installed it and tested it from command line just fine but when I tried to put it into my application I couldn't get it to...

How can I open a sound file loaded in memory with libsndfile?

To understand this, I want to tell the following scenario: I designed a game and finished it. I encrypted the audio data with AES. I will then decrypt these encrypted files while the game is...

Using librosa in an azure function app written in python

I'm working an an azure function in python that uses librosa to visualize some audio data. It works fine locally on my windows box in vscode. Remote build from the command line with func azure...

AWS lambda container not picking system dependency

I am Building a lambda to denoise audio files. Python soundfile uses libsndfile system dependency which I am installing via apt in my DockerFile. The container is running fine locally but when I...