Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinError 2 #739

Open
4 tasks done
roninshahi opened this issue Jan 21, 2025 · 1 comment
Open
4 tasks done

WinError 2 #739

roninshahi opened this issue Jan 21, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@roninshahi
Copy link

roninshahi commented Jan 21, 2025

Checks

  • This template is only for usage issues encountered.
  • I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
  • I have searched for existing issues, including closed ones, and couldn't find a solution.
  • I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details

When I performed the "Synthesize" operation, an "Error" appeared and the following content was displayed in the console:

Steps to Reproduce

I searched all of documents and issues but couldn't find the reason

✔️ Expected Behavior

Download Vocos from huggingface charactr/vocos-mel-24khz

vocab : C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\f5_tts\infer\examples\vocab.txt
token : custom
model : C:\Users\Sword.cache\huggingface\hub\models--SWivid--F5-TTS\snapshots\4dcc16f297f2ff98a17b3726b16f5de5a5e45672\F5TTS_Base\model_1200000.safetensors
Starting app...

L URL: http://127.0.0.1:7860/

❌ Actual Behavior

Download Vocos from huggingface charactr/vocos-mel-24khz

vocab : C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\f5_tts\infer\examples\vocab.txt
token : custom
model : C:\Users\Sword.cache\huggingface\hub\models--SWivid--F5-TTS\snapshots\4dcc16f297f2ff98a17b3726b16f5de5a5e45672\F5TTS_Base\model_1200000.safetensors

C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\components\chatbot.py:242: UserWarning: You have not specified a value for the type parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys.
warnings.warn(
Starting app...

L URL: http://127.0.0.1:7860/
To create a public link, set share=True in launch().
C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last):
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\blocks.py", line 2047, in process_api
result = await self.call_function(
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\blocks.py", line 1594, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\anyio_backends_asyncio.py", line 2505, in run_sync_in_worker_thread
return await future
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\anyio_backends_asyncio.py", line 1005, in run
result = context.run(func, *args)
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\gradio\utils.py", line 869, in wrapper
response = f(*args, **kwargs)
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\f5_tts\infer\infer_gradio.py", line 241, in basic_tts
audio_out, spectrogram_path, ref_text_out = infer(
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\f5_tts\infer\infer_gradio.py", line 131, in infer
ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, ref_text, show_info=show_info)
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\f5_tts\infer\utils_infer.py", line 286, in preprocess_ref_audio_text
aseg = AudioSegment.from_file(ref_audio_orig)
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "C:\Users\Sword.conda\envs\f5-tts\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C:\Users\Sword.conda\envs\f5-tts\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Sword.conda\envs\f5-tts\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2]

@roninshahi roninshahi added the help wanted Extra attention is needed label Jan 21, 2025
@ZhikangNiu
Copy link
Collaborator

maybe you need to install ffmpeg?pydub depends on ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants