#1221 videotrans.configure._except.StopRetry: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidd

2406:da14* Posted at: 2 days ago 👁12

网络连接失败:
Traceback (most recent call last):
File "videotrans\tts\_f5tts.py", line 301, in _run
File "gradio_client\client.py", line 127, in init

_src = self._space_name_to_src(src)

File "gradio_client\client.py", line 861, in _space_name_to_src

return huggingface_hub.space_info(space, token=self.hf_token).host  # type: ignore

File "huggingface_hub\utils\_validators.py", line 106, in _inner_fn
File "huggingface_hub\utils\_validators.py", line 160, in validate_repo_id
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'http:'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 291, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_f5tts.py", line 316, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 303, in _run
videotrans.configure._except.StopRetry: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'http:'.


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:I:/AI_pyvideotrans

1 Replies

这个错误是由于您在 F5-TTS 配音设置中输入的地址格式不正确导致的。错误信息显示系统将 "http:" 识别为无效的仓库ID。

请按以下步骤解决:

  1. 在软件主界面,点击菜单栏的 TTS配音设置
  2. 找到 F5-TTS 配音渠道的设置项
  3. 检查您输入的 F5-TTS 服务地址格式是否正确
  4. 正确的格式应该是完整的 URL,例如:http://localhost:7860https://your-f5tts-server.com
  5. 确保地址不包含多余的空格或特殊字符

如果您没有使用 F5-TTS,请切换到其他配音渠道,如 Edge-TTS 或 OpenAI TTS。

如果问题仍然存在,请提供您当前在 F5-TTS 设置中填写的具体地址。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions