#4933 videotrans.configure.excepts.DubbingSrtError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are fo

114.86* Posted at: 5 hours ago

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\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 183, in run
File "videotrans\tts\_base.py", line 132, in run
videotrans.configure.excepts.DubbingSrtError: 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.26200-SP0
version:v4.00
frozen:True
language:zh
root_dir:E:/soft/win-pyvideotrans-v4.00-528

1 Replies

这是由于TTS渠道配置中,程序将您填写的HTTP API地址错误地识别为HuggingFace的模型仓库ID,导致格式校验失败(repo id不能以http:开头)。

解决方法:

  1. 打开菜单栏 工具/选项 -> TTS设置,找到您当前使用的配音渠道(如F5-TTS、CosyVoice、Qwen-TTS等)。
  2. 检查该渠道的配置:

    • API地址:确保填写的是正确的服务地址(例如 http://127.0.0.1:7860),不要包含多余空格,末尾不要带斜杠。
    • 模型名称:如果渠道需要填写模型名称(如 qwen:latestcosy-voice),请只填模型名称,不要填入API地址
  3. 检查 参考音频文件 设置:若使用了声音克隆,确保参考音频文件存放在软件根目录下的 f5-tts/ 文件夹内,并在设置中只填写文件名(如 1.wav),不要包含路径或URL。
  4. 确认无误后,重新点击试听配音按钮。

如果问题依旧,请提供软件安装目录下 logs/ 文件夹中的最新日志文件(复制底部约30行)以便进一步分析。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource