python-soundfile
python-soundfile copied to clipboard
SoundFile is an audio library based on libsndfile, CFFI, and NumPy
Epoch:1 Steps : 0, Gen Loss Total : 29.366, Dis Loss Total : 3.910, s/b : 1.833 ...... Steps : 1390, Gen Loss Total : 15.950, Dis Loss Total :...
Now that mp3 support has been added, it would be great to be able to choose the bitrate when writing to mp3. What is the default btw? 128?
Is there a way to save the left and right channel of a recording into separate files? I'm currently splitting the wav files after but given how comprehensive the soundfile...
I use this code in windows import json import logging from pathlib import Path import hydra import numpy as np import pytorch_lightning as pl import torch import torchaudio from omegaconf...
I'm receiving ValueError on reading 'flac'. ``` with open("123.flac", 'rb') as f: _, _ = sf.read(f) ``` ErrorLog: ``` ValueError Traceback (most recent call last) /tmp/ipykernel_17098/1860618875.py in 1 with open("123.flac",...
soundfile.read can read ".mp3". However sf.info get : Error opening '.....mp3' File contains data in an unknown format.
Not entirely sure how this happens, but I've been observing program crashes with `sf.write` for any Ogg file over a duration of 95-96 seconds at 44.1 kHz. This works: ```...
miniforge3/lib/python3.9/site-packages/soundfile.py", line 1229, in _init_virtual_io def vio_get_filelen(user_data): MemoryError: Cannot allocate write+execute memory for ffi.callback(). You might be running on a system that prevents this. For more information, see https://cffi.readthedocs.io/en/latest/using.html#callbacks
Try to open an Ogg FLAC file with `soundfile`: ```python In [1]: import soundfile In [2]: soundfile.__version__ Out[2]: '0.12.1' In [3]: soundfile.__libsndfile_version__ Out[3]: '1.2.2' In [4]: sf = soundfile.SoundFile('oggflac.ogg') ---------------------------------------------------------------------------...