Python 读取wav文件时发生运行时错误

Python 读取wav文件时发生运行时错误,python,runtime-error,readfile,system-error,Python,Runtime Error,Readfile,System Error,我跟着图书馆走。我已经按照建议遵循了文档。但我得到了运行时错误 我使用sudo chmod+x/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/TIMIT/raw/TIMIT更改了文件访问权限,但没有解决问题 这是我执行的语法 python3 TIMIT_preparation.py/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/TIMIT/raw/TIMIT/home/sathiyakugan

我跟着图书馆走。我已经按照建议遵循了文档。但我得到了运行时错误

我使用
sudo chmod+x/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/TIMIT/raw/TIMIT
更改了文件访问权限,但没有解决问题

这是我执行的语法
python3 TIMIT_preparation.py/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/TIMIT/raw/TIMIT/home/sathiyakugan/Documents/FYP/out data_list/TIMIT_all.scp

这就是我收到的错误

  File "TIMIT_preparation.py", line 56, in <module>
    [signal, fs] = sf.read(wav_file)
  File "/home/sathiyakugan/.local/lib/python3.6/site-packages/soundfile.py", line 257, in read
    subtype, endian, format, closefd) as f:
  File "/home/sathiyakugan/.local/lib/python3.6/site-packages/soundfile.py", line 627, in __init__
    self._file = self._open(file, mode_int, closefd)
  File "/home/sathiyakugan/.local/lib/python3.6/site-packages/soundfile.py", line 1182, in _open
    "Error opening {0!r}: ".format(self.name))
  File "/home/sathiyakugan/.local/lib/python3.6/site-packages/soundfile.py", line 1355, in _error_check
    raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening '/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/timit/raw/TIMIT/train/dr1/fvmh0/si1466.wav': System error.
文件“TIMIT\u preparation.py”,第56行,在
[信号,fs]=sf.read(wav_文件)
文件“/home/sathiyakugan/.local/lib/python3.6/site packages/soundfile.py”,第257行,已读
子类型、endian、格式、closefd)作为f:
文件“/home/sathiyakugan/.local/lib/python3.6/site packages/soundfile.py”,第627行,在__
self.\u file=self.\u打开(文件、模式、关闭)
文件“/home/sathiyakugan/.local/lib/python3.6/site packages/soundfile.py”,第1182行,打开
打开{0!r}时出错:“.format(self.name))
文件“/home/sathiyakugan/.local/lib/python3.6/site packages/soundfile.py”,第1355行,在错误检查中
raise RUNTIMERROR(前缀+\u ffi.string(err\u str).decode('utf-8','replace'))
运行时错误:打开“/home/sathiyakugan/Downloads/TIMIT/data/lisa/data/TIMIT/raw/TIMIT/train/dr1/fvmh0/si1466.wav”时出错:系统错误。

如果路径存在权限问题或键入错误,请仔细检查路径。SoundFile模块打开的文件与当前文件夹无关,但需要文件的绝对路径。

Related:?仔细检查路径。这也是我的问题,谢谢你的回答,你能举例说明你的意思吗?这并不能回答这个问题。一旦你有足够的钱,你将能够;相反-