File "/home/hwja/anaconda3/envs/py2/lib/python2.7/site-packages/soundfile.py", line 373, in read
subtype, endian, format, closefd) as f:
File "/home/hwja/anaconda3/envs/py2/lib/python2.7/site-packages/soundfile.py", line 740, in init
self._file = self._open(file, mode_int, closefd)
File "/home/hwja/anaconda3/envs/py2/lib/python2.7/site-packages/soundfile.py", line 1265, in _open
"Error opening {0!r}: ".format(self.name))
File "/home/hwja/anaconda3/envs/py2/lib/python2.7/site-packages/soundfile.py", line 1455, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))

我的错误已经被覆盖了,这个是网上找到的一个,最后一行的报错信息是一样的,我的还有一个就是写的system error, 我想之前别人用soundfile没有问题,到我这里怎么就有问题了,找了很久,找麻了,如果出现编码出错这种,大家可以试试看一下在写入文件的时候是不是文件名字或者文件目录的名字错了,我的就是最开始写的-5db,后来实在是不知道怎么改了,改了一下名字,发现用这个函数是没问题的。

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐