bastibe / python-soundfile

SoundFile is an audio library based on libsndfile, CFFI, and NumPy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OGG file not recognised

selcukkirtas opened this issue · comments

i am having error
soundfile.LibsndfileError: Error opening 'file.ogg': Format not recognised.

import soundfile as sf
import os
def convert():
data, samplerate = sf.read('file.ogg')
sf.write('file.wav', data, samplerate)

commented

Probably duplicate and related to #251 #252