python-soundfile
python-soundfile copied to clipboard
SoundFile is an audio library based on libsndfile, CFFI, and NumPy
import soundfile as sf import matplotlib.pyplot as plt import numpy as np data, samplerate = sf.read('goo_py.aiff') plt.plot(data) plt.show() print(samplerate) print(len(data)*1/samplerate)
Windows 10 x64, Python 3.8.1. PySoundFile installed with `pip install pysoundfile`. With Python's interactive interpreter from the command line (directly typing `python` in cmd), I opened an ogg file (about...
When using soundfile.read() to load ".wav" file I get: "RuntimeError: Error opening 'gruesome.wav': File contains data in an unknown format." I have already install "ffmpeg" and I don't know what...
I'm reading 100 OGG files, and they sometimes have range outside [-1, 1] I'm seeing values around 1.42 Is the correct behavior to normalize to [-1, 1] or to clamp...
Hi. I'm trying to read from a stream because downloading the whole file is not really optimal. This is what i came up with but it doesn't work. ``` import...
This is already in progress, see 2e80ec45fcc20f834984d29a2799eb0e482f7e37, but I think we should go a bit further. I don't think the capitalization "SoundFile" makes any sense. It's the spelling of the...
Hi! I got an issue when trying to open a FLAC file using the following simple code: ``` >>> import soundfile as sf >>> data, sr = sf.read('test.flac') ``` That...
See https://github.com/conda-forge/pysoundfile-feedstock/pull/12. I'm not sure if this will be necessary, but it is an option (assuming that it works on all platforms).
The PyPy versions available on Travis-CI are currently not documented, but I found a few that are working. Note that these are currently pointing to version 5.8.x, which doesn't support...
Referring back to #220, we need to improve our build process. Right now, we *should* be building correct cross-platform wheels. However, the source distribution currently includes all binaries, which is...