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

219.143* Posted at: 5 hours ago 👁8

Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'http:'.:
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 312, in run
File "videotrans\tts\_base.py", line 177, 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.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:C:/Users/gaoliangde/Desktop/win-pyvideotrans-v3.86

1 Replies

这个错误表明您在配置 F5-TTS 语音克隆功能时,输入的“API地址”格式不正确。F5-TTS 的 API 地址应该是一个 Hugging Face Space 的名称(例如 suno/bark),而不是一个完整的 HTTP URL。

解决方法:

  1. 检查并修正 API 地址:

    • 在软件主界面,点击菜单栏的 工具 -> 配置
    • 找到 F5-TTS 部分。
    • 检查 API地址 这一项。它应该是一个类似 模型作者/模型名称 的格式,例如 jianchang/f5-tts
    • 错误的格式示例: http://127.0.0.1:7860https://huggingface.co/spaces/jianchang/f5-tts
    • 正确的格式示例: jianchang/f5-tts
  2. 确保网络连接:

    • 使用 Hugging Face Space 作为 API 需要能够访问 huggingface.co。如果您在国内,可能需要配置网络代理。
    • 您可以在主界面第5行的 网络代理 处填写代理地址(例如 http://127.0.0.1:10809)。
  3. (可选)使用本地部署:

    • 如果您希望完全本地运行 F5-TTS 以避免网络问题,可以按照官方文档部署本地服务,然后将 API 地址设置为 http://127.0.0.1:7860(前提是您部署的服务运行在这个端口)。

请按照上述步骤修正 API 地址后重试。

有用的文档链接:F5/Spark/index/voxpcm/Dia-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