FileNotFoundError: [WinError 2] 系统找不到指定的文件,怎么办 #1161
Unanswered
bihaiqinkong
asked this question in
Q&A
Replies: 2 comments 9 replies
-
That means that ffmpeg is not found. |
Beta Was this translation helpful? Give feedback.
9 replies
-
It seems you are using windows, so you need add ffmpeg to environment variable path, then restart cmd window, then will be OK! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS C:\Users\liuxin> whisper audio.mp3
E:\python 3.10\lib\site-packages\whisper\transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn("FP16 is not supported on CPU; using FP32 instead")
Traceback (most recent call last):
File "E:\python 3.10\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "E:\python 3.10\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\python 3.10\Scripts\whisper.exe_main.py", line 7, in
File "E:\python 3.10\lib\site-packages\whisper\transcribe.py", line 437, in cli
result = transcribe(model, audio_path, temperature=temperature, **args)
File "E:\python 3.10\lib\site-packages\whisper\transcribe.py", line 121, in transcribe
mel = log_mel_spectrogram(audio, padding=N_SAMPLES)
File "E:\python 3.10\lib\site-packages\whisper\audio.py", line 130, in log_mel_spectrogram
audio = load_audio(audio)
File "E:\python 3.10\lib\site-packages\whisper\audio.py", line 46, in load_audio
ffmpeg.input(file, threads=0)
File "E:\python 3.10\lib\site-packages\ffmpeg_run.py", line 313, in run
process = run_async(
File "E:\python 3.10\lib\site-packages\ffmpeg_run.py", line 284, in run_async
return subprocess.Popen(
File "E:\python 3.10\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "E:\python 3.10\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
Beta Was this translation helpful? Give feedback.
All reactions