Closed diganta121 closed 2 weeks ago
i moved it to different location and it still raises the same error
FileNotFoundError Traceback (most recent call last)
Cell In[10], [line 3](vscode-notebook-cell:?execution_count=10&line=3)
[1](vscode-notebook-cell:?execution_count=10&line=1) Afile = "steve_jobs2.mp3"
----> [3](vscode-notebook-cell:?execution_count=10&line=3) target_se, audio_name = se_extractor.get_se(
[4](vscode-notebook-cell:?execution_count=10&line=4) Afile, tone_color_converter, vad=True
[5](vscode-notebook-cell:?execution_count=10&line=5) )
File d:\experiments\coding\opvoice2\openvoice\se_extractor.py:154, in get_se(audio_path, vc_model, target_dir, vad)
[147](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:147) # if os.path.isfile(se_path):
[148](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:148) # se = torch.load(se_path).to(device)
[149](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:149) # return se, audio_name
[150](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:150) # if os.path.isdir(audio_path):
[151](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:151) # wavs_folder = audio_path
[153](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:153) if vad:
--> [154](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:154) wavs_folder = split_audio_vad(
[155](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:155) audio_path, target_dir=target_dir, audio_name=audio_name
[156](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:156) )
[157](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:157) else:
[158](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:158) wavs_folder = split_audio_whisper(
[159](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:159) audio_path, target_dir=target_dir, audio_name=audio_name
[160](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:160) )
File d:\experiments\coding\opvoice2\openvoice\se_extractor.py:86, in split_audio_vad(audio_path, audio_name, target_dir, split_seconds)
[84](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:84) def split_audio_vad(audio_path, audio_name, target_dir, split_seconds=10.0):
...
[1455](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1455) self._close_pipe_fds(p2cread, p2cwrite,
[1456](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1456) c2pread, c2pwrite,
[1457](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1457) errread, errwrite)
FileNotFoundError: [WinError 2] The system cannot find the file specified
it also does not work with absolute file path
我把它移到了不同的位置,它仍然引发了同样的错误
FileNotFoundError Traceback (most recent call last) Cell In[10], [line 3](vscode-notebook-cell:?execution_count=10&line=3) [1](vscode-notebook-cell:?execution_count=10&line=1) Afile = "steve_jobs2.mp3" ----> [3](vscode-notebook-cell:?execution_count=10&line=3) target_se, audio_name = se_extractor.get_se( [4](vscode-notebook-cell:?execution_count=10&line=4) Afile, tone_color_converter, vad=True [5](vscode-notebook-cell:?execution_count=10&line=5) ) File d:\experiments\coding\opvoice2\openvoice\se_extractor.py:154, in get_se(audio_path, vc_model, target_dir, vad) [147](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:147) # if os.path.isfile(se_path): [148](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:148) # se = torch.load(se_path).to(device) [149](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:149) # return se, audio_name [150](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:150) # if os.path.isdir(audio_path): [151](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:151) # wavs_folder = audio_path [153](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:153) if vad: --> [154](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:154) wavs_folder = split_audio_vad( [155](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:155) audio_path, target_dir=target_dir, audio_name=audio_name [156](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:156) ) [157](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:157) else: [158](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:158) wavs_folder = split_audio_whisper( [159](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:159) audio_path, target_dir=target_dir, audio_name=audio_name [160](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:160) ) File d:\experiments\coding\opvoice2\openvoice\se_extractor.py:86, in split_audio_vad(audio_path, audio_name, target_dir, split_seconds) [84](file:///D:/experiments/coding/opvoice2/openvoice/se_extractor.py:84) def split_audio_vad(audio_path, audio_name, target_dir, split_seconds=10.0): ... [1455](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1455) self._close_pipe_fds(p2cread, p2cwrite, [1456](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1456) c2pread, c2pwrite, [1457](https://file+.vscode-resource.vscode-cdn.net/d%3A/experiments/coding/opvoice2/~/AppData/Local/Programs/Python/Python310/lib/subprocess.py:1457) errread, errwrite) FileNotFoundError: [WinError 2] The system cannot find the file specified
它也不适用于绝对文件路径
我也遇到了这个问题,已经解决照这个教程走就可以了 装ffmpeg 或者 ffmpeg添加到系统环境变量 https://blog.csdn.net/Dneccc/article/details/138825228
adding ffmpeg to path resolved the issue 👍
i am stuck with this error in this
the file exists and the path is correct but it still raises this error
OpenVoice version: v1 processed\example_reference_v1Cz+Mo6TtWn^ElNh_^\se.pth
i doubt that its a problem caused by insufficient privileges but how can that even be possible
pls help me fix this