javedali99 / audio-to-text-transcription

This repository contains a Python script that allows users to download the audio from a YouTube video, transcribe it into text, detect the language and save the transcription in txt file automatically.
https://www.javedali.net/post/2023-04-audio-to-text/
MIT License
117 stars 18 forks source link

FileNotFoundError: [WinError 2] The system cannot find the file specified _winapi.CreateProcess(executable, args, #5

Open wutpppppppppppppppppp opened 8 months ago

wutpppppppppppppppppp commented 8 months ago

I got this error message when I was trying to transcript the audio. How do I fix this? D:\Study\audio-to-text-transcription\audiovenv\Lib\site-packages\whisper\transcribe.py:126: 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 "D:\Study\audio-to-text-transcription\youtube_audio_to_text.py", line 46, in <module> result = model.transcribe("YoutubeAudios/audio.mp3") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Study\audio-to-text-transcription\audiovenv\Lib\site-packages\whisper\transcribe.py", line 133, in transcribe mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Study\audio-to-text-transcription\audiovenv\Lib\site-packages\whisper\audio.py", line 140, in log_mel_spectrogram audio = load_audio(audio) ^^^^^^^^^^^^^^^^^ File "D:\Study\audio-to-text-transcription\audiovenv\Lib\site-packages\whisper\audio.py", line 58, in load_audio out = run(cmd, capture_output=True, check=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\woosh\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\woosh\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\woosh\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the file specified Untitled

whisnumurtyga commented 7 months ago

i have some problem with you image I have modificate code to make sure my file is exist. the result is exist but the code still have file not found error image

whisnumurtyga commented 7 months ago

bruh @wutpppppppppppppppppp are you have trying run code in same directory where you install conda?

Ruinan-Ding commented 7 months ago

you must add ffmpeg to your environment variables

Ruinan-Ding commented 7 months ago

https://www.gyan.dev/ffmpeg/builds/