Answer the question
In order to leave comments, you need to log in
Converting OGG to WAV?
I use two lines
data, samplerate = sf.read('audio1.ogg')
sf.write('audio1.wav', data, samplerate)
Gives this error:
```data, samplerate = sf.read('audio1. ogg')
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\soundfile.py",
line 372, in read
with SoundFile(file, 'r', samplerate, channels ,
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\soundfile.py",
line 740, in __init__
self._file = self._open(file, mode_int, closefd)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\soundfile.py",
line 1264,in_open
_error_check(_snd.sf_error(file_ptr),
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\soundfile.py",
line 1455, in _error_check
raise RuntimeError(prefix + _ffi .string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening 'audio1.ogg': System error.
```
What's wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question