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

2406:da14* Posted at: 24 days ago 👁83

网络连接失败:
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

5 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 设置中填写的具体地址。

我用的是index-tts,设置中填写的具体地址是http://127.0.0.1:7860,测试也通过,就是点击试听配音时出错

问题在于您输入的地址格式不正确。虽然测试通过,但实际使用时系统将 "http:" 错误地解析为仓库ID。

请按以下步骤修正:

  1. 在菜单栏选择 TTS配音设置
  2. 找到 index-tts 配音渠道的设置项
  3. 将地址修改为:127.0.0.1:7860 (去掉 http:// 前缀)
  4. 保存设置后重新测试

正确的格式应该是纯主机地址和端口号,不需要协议前缀。系统内部会自动处理协议部分。

如果修改后仍然出错,请检查您的 index-tts 服务是否正常运行在 127.0.0.1:7860 端口,并确保防火墙没有阻止连接。

等待 uuid_signal 线程退出
正在等待线程 TranslationSRT 结束...
正在等待线程 TaskDone 结束...
Attempting to kill ffmpeg processes for user: lywcl
Successfully killed ffmpeg processes using taskkill


Application started at 2025-11-03 13:27:20

2025-11-03 13:27:20,578 - INFO - 返回缓存的编解码器 Windows-264: h264_nvenc
TTS_TYPE_LIST[show_ttstype_name]=16
self.proxy_str=None
2025-11-03 13:28:11,663 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
Loaded as API: http://127.0.0.1:7860/
2025-11-03 13:28:11,674 - INFO - index-tts data={'ref_wav': 'D:/videotransv383/f5-tts/nverguo.wav'}
2025-11-03 13:28:16,086 - INFO - result={'visible': True, 'value': 'C:\Users\lywcl\AppData\Local\Temp\gradio\ad683d5e9793e130ffcdbbcd6776e5cbe161d7aa3096cfa2181f805e0244ea86\spk_1762147691.wav', '__type__': 'update'}
pygame 2.5.2 (SDL 2.28.3, Python 3.10.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
self.proxy_str=None
2025-11-03 13:28:26,761 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
self.proxy_str=None
2025-11-03 13:28:57,143 - INFO - 最终配置信息:self.cfg=TaskCfg(cache_folder='D:/videotransv383/tmp1832/3db499e1f9', target_dir='D:/youtube_download/Downloaded_Videos/xx/Stars', remove_noise=False, is_separate=True, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/youtube_download/Downloaded_Videos/xx/Stars/en.srt', target_sub='D:/youtube_download/Downloaded_Videos/xx/Stars/zh-cn.srt', source_wav='D:/videotransv383/tmp1832/3db499e1f9/en.wav', source_wav_output='D:/youtube_download/Downloaded_Videos/xx/Stars/en.wav', target_wav='D:/videotransv383/tmp1832/3db499e1f9/target.wav', target_wav_output='D:/youtube_download/Downloaded_Videos/xx/Stars/zh-cn.wav', subtitles='', novoice_mp4='D:/videotransv383/tmp1832/3db499e1f9/novoice.mp4', noextname='Stars', shibie_audio='D:/youtube_download/Downloaded_Videos/xx/Stars/shibie.wav', targetdir_mp4='D:/youtube_download/Downloaded_Videos/xx/Stars/Stars.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', copysrt_rawvideo=False, clear_cache=True, translate_type=12, tts_type=15, recogn_type=0, model_name='large-v3-turbo', split_type='all', voice_autorate=True, video_autorate=True, cuda=True, paraformer_spk=False, name='D:/youtube_download/Downloaded_Videos/Stars.mp4', basename='Stars.mp4', ext='mp4', dirname='D:/youtube_download/Downloaded_Videos', shound_del_name=None, uuid='3db499e1f9')
2025-11-03 13:28:57,191 - INFO - 返回缓存的编解码器 Windows-264: h264_nvenc
2025-11-03 13:29:02,417 - INFO - segment_0 instruments done
2025-11-03 13:29:03,802 - INFO - segment_0 vocals done

self.proxy_str=None
2025-11-03 13:29:08,940 - INFO - 开始创建 pid:self.pidfile='D:/videotransv383/tmp1832/25756.lock'
2025-11-03 13:29:11,668 - INFO - Processing audio with duration 02:15.300
2025-11-03 13:29:11,901 - INFO - VAD filter removed 00:33.540 of audio
2025-11-03 13:29:11,901 - DEBUG - VAD filter kept the following audio segments: [00:04.512 -> 00:06.688], [00:07.200 -> 00:11.104], [00:11.520 -> 00:12.064], [00:12.384 -> 00:17.376], [00:17.408 -> 00:18.400], [00:19.072 -> 00:19.744], [00:20.256 -> 00:22.304], [00:22.784 -> 00:23.392], [00:23.680 -> 00:26.560], [00:27.040 -> 00:31.744], [00:31.968 -> 00:32.896], [00:33.408 -> 00:35.136], [00:35.616 -> 00:37.696], [00:38.208 -> 00:39.232], [00:39.680 -> 00:42.976], [00:43.616 -> 00:46.336], [00:46.752 -> 00:47.520], [00:47.872 -> 00:51.040], [00:51.552 -> 00:54.336], [00:54.944 -> 00:58.016], [00:58.240 -> 00:59.616], [01:00.032 -> 01:04.480], [01:04.640 -> 01:05.888], [01:06.336 -> 01:10.144], [01:10.688 -> 01:12.960], [01:13.504 -> 01:16.224], [01:16.704 -> 01:19.776], [01:20.224 -> 01:23.392], [01:23.936 -> 01:24.992], [01:25.408 -> 01:28.064], [01:28.576 -> 01:32.192], [01:32.768 -> 01:34.496], [01:34.688 -> 01:38.720], [01:39.232 -> 01:41.888], [01:42.048 -> 01:44.544], [01:44.992 -> 01:47.488], [01:47.904 -> 01:51.264], [01:51.712 -> 01:52.448], [01:52.928 -> 01:54.784], [01:55.072 -> 01:56.576], [01:57.056 -> 01:58.464], [01:59.008 -> 02:00.672], [02:01.120 -> 02:02.304], [02:02.496 -> 02:04.608]
2025-11-03 13:29:11,944 - DEBUG - Processing segment at 00:00.000
2025-11-03 13:29:12,577 - DEBUG - Processing segment at 00:28.120
2025-11-03 13:29:12,935 - DEBUG - Processing segment at 00:55.900
2025-11-03 13:29:13,357 - DEBUG - Processing segment at 01:25.240
self.proxy_str=None
self.aisendsrt=True
2025-11-03 13:29:29,119 - INFO - #### 字幕翻译前准备1:self.aisendsrt=True,self.trans_thread=20
2025-11-03 13:29:29,119 - INFO - 字幕翻译前准备2
2025-11-03 13:29:29,120 - INFO - #### [以完整SRT格式发送翻译],it应是dict列表
2025-11-03 13:29:37,274 - INFO - #### [以完整SRT格式发送翻译],it应是dict列表
2025-11-03 13:29:41,667 - INFO - 原始返回SRT翻译结果:result_srt_str_list=['1\n00:00:04,510 --> 00:00:10,780\n大家好,亲爱的星空探索者们!你是否曾仰望夜空,对那些闪烁的星星充满好奇?\n\n2\n00:00:11,480 --> 00:00:18,330\n今天,就让我带你踏上一场奇妙的夜空之旅,一起揭开星星与星座的神秘面纱。\n\n3\n00:00:19,100 --> 00:00:22,060\n更棒的是,今晚我们甚至还能学会如何找到其中的一些呢!\n\n4\n00:00:22,760 --> 00:00:26,280\n一天傍晚,我拿起心爱的望远镜,走出家门。\n\n5\n00:00:27,040 --> 00:00:32,590\n天空一片漆黑,繁星点点,仿佛撒满了璀璨的亮片,为这片深邃的黑色画卷增添了几分梦幻色彩。\n\n6\n00:00:33,360 --> 00:00:37,560\n“哇,”我心想,“每一颗星星都藏着属于自己的故事啊!”\n\n7\n00:00:37,560 --> 00:00:42,880\n你知道吗?星星其实是一团巨大的火球,比我们的地球还要大得多。\n\n8\n00:00:43,620 --> 00:00:46,020\n它们之所以会发光,是因为内部正在燃烧着炽热的气体。\n\n9\n00:00:46,720 --> 00:00:50,910\n不过别担心,这些星星距离我们实在太遥远了,从这里看过去完全安全无虞。\n\n10\n00:00:51,520 --> 00:00:54,140\n当我继续凝视着夜空时,突然发现了一个令人惊叹的现象——\n\n11\n00:00:54,930 --> 00:00:59,310\n有些星星竟然连成了特定的形状,像是动物、人物,甚至是日常用品。\n\n12\n00:01:00,010 --> 00:01:05,610\n这些由星星组成的图案,就被称为“星座”。几千年来,人们一直用这种方式将天上的点点星光连接起来。\n\n13\n00:01:06,300 --> 00:01:10,080\n比如,那著名的北斗七星,看起来就像一把巨大的勺子。\n\n14\n00:01:10,620 --> 00:01:12,860\n想象一下,用它来舀一勺“星星汤”,是不是很有趣?\n\n15\n00:01:13,500 --> 00:01:16,020\n而我最喜欢的星座之一,就是猎户座。它由三颗明亮的星星排成一条直线,构成了猎人的腰带。\n\n16\n00:01:16,720 --> 00:01:19,560\n一旦你找到了它,一定会觉得自己像是一位真正的天空探险家!\n\n17\n00:01:20,210 --> 00:01:23,210\n但其实,还有一个小秘密——\n\n18\n00:01:23,940 --> 00:01:24,800\n你根本不需要望远镜,也能轻松找到这些星座。\n\n19\n00:01:25,390 --> 00:01:27,810\n只需要一双明亮的眼睛、一个晴朗的夜晚,再加上一点点想象力,就能开启你的星座探索之旅啦!', '21\n00:01:32,780 --> 00:01:34,180\n如果你想知道从哪里开始,\n\n22\n00:01:34,340 --> 00:01:38,610\n你可以使用星图,或者在手机上直接显示星座的APP。\n\n23\n00:01:39,220 --> 00:01:44,340\n当我仰头凝视着满天繁星时,才意识到天空竟是如此神奇。\n\n24\n00:01:44,340 --> 00:01:47,190\n它仿佛是一本巨大的故事书,里面充满了无尽的冒险。\n\n25\n00:01:47,910 --> 00:01:51,050\n每一颗星星和每一个星座,都藏着一个等待被讲述的故事。\n\n26\n00:01:51,720 --> 00:01:52,300\n你呢?\n\n27\n00:01:52,920 --> 00:01:56,200\n下次当你抬头仰望星空时,不妨试着找到一个星座。\n\n28\n00:01:57,080 --> 00:01:58,340\n说不定你还能创造出属于自己的星座!\n\n29\n00:01:59,010 --> 00:02:00,390\n你会用星星勾勒出怎样的形状呢?\n\n30\n00:02:01,080 --> 00:02:02,040\n欢迎在评论区告诉我哦!\n\n31\n00:02:02,470 --> 00:02:04,250\n我很期待听你分享你的星空故事。']
整理为list[dict]后的结果:raws_list=[{'line': 1, 'start_time': 4510, 'end_time': 10780, 'text': '大家好,亲爱的星空探索者们!你是否曾仰望夜空,对那些闪烁的星星充满好奇?', 'startraw': '00:00:04,510', 'endraw': '00:00:10,780', 'time': '00:00:04,510 --> 00:00:10,780'}, {'line': 2, 'start_time': 11480, 'end_time': 18330, 'text': '今天,就让我带你踏上一场奇妙的夜空之旅,一起揭开星星与星座的神秘面纱。', 'startraw': '00:00:11,480', 'endraw': '00:00:18,330', 'time': '00:00:11,480 --> 00:00:18,330'}, {'line': 3, 'start_time': 19100, 'end_time': 22060, 'text': '更棒的是,今晚我们甚至还能学会如何找到其中的一些呢!', 'startraw': '00:00:19,100', 'endraw': '00:00:22,060', 'time': '00:00:19,100 --> 00:00:22,060'}, {'line': 4, 'start_time': 22760, 'end_time': 26280, 'text': '一天傍晚,我拿起心爱的望远镜,走出家门。', 'startraw': '00:00:22,760', 'endraw': '00:00:26,280', 'time': '00:00:22,760 --> 00:00:26,280'}, {'line': 5, 'start_time': 27040, 'end_time': 32590, 'text': '天空一片漆黑,繁星点点,仿佛撒满了璀璨的亮片,为这片深邃的黑色画卷增添了几分梦幻色彩。', 'startraw': '00:00:27,040', 'endraw': '00:00:32,590', 'time': '00:00:27,040 --> 00:00:32,590'}, {'line': 6, 'start_time': 33360, 'end_time': 37560, 'text': '“哇,”我心想,“每一颗星星都藏着属于自己的故事啊!”', 'startraw': '00:00:33,360', 'endraw': '00:00:37,560', 'time': '00:00:33,360 --> 00:00:37,560'}, {'line': 7, 'start_time': 37560, 'end_time': 42880, 'text': '你知道吗?星星其实是一团巨大的火球,比我们的地球还要大得多。', 'startraw': '00:00:37,560', 'endraw': '00:00:42,880', 'time': '00:00:37,560 --> 00:00:42,880'}, {'line': 8, 'start_time': 43620, 'end_time': 46020, 'text': '它们之所以会发光,是因为内部正在燃烧着炽热的气体。', 'startraw': '00:00:43,620', 'endraw': '00:00:46,020', 'time': '00:00:43,620 --> 00:00:46,020'}, {'line': 9, 'start_time': 46720, 'end_time': 50910, 'text': '不过别担心,这些星星距离我们实在太遥远了,从这里看过去完全安全无虞。', 'startraw': '00:00:46,720', 'endraw': '00:00:50,910', 'time': '00:00:46,720 --> 00:00:50,910'}, {'line': 10, 'start_time': 51520, 'end_time': 54140, 'text': '当我继续凝视着夜空时,突然发现了一个令人惊叹的现象——', 'startraw': '00:00:51,520', 'endraw': '00:00:54,140', 'time': '00:00:51,520 --> 00:00:54,140'}, {'line': 11, 'start_time': 54930, 'end_time': 59310, 'text': '有些星星竟然连成了特定的形状,像是动物、人物,甚至是日常用品。', 'startraw': '00:00:54,930', 'endraw': '00:00:59,310', 'time': '00:00:54,930 --> 00:00:59,310'}, {'line': 12, 'start_time': 60010, 'end_time': 65610, 'text': '这些由星星组成的图案,就被称为“星座”。几千年来,人们一直用这种方式将天上的点点星光连接起来。', 'startraw': '00:01:00,010', 'endraw': '00:01:05,610', 'time': '00:01:00,010 --> 00:01:05,610'}, {'line': 13, 'start_time': 66300, 'end_time': 70080, 'text': '比如,那著名的北斗七星,看起来就像一把巨大的勺子。', 'startraw': '00:01:06,300', 'endraw': '00:01:10,080', 'time': '00:01:06,300 --> 00:01:10,080'}, {'line': 14, 'start_time': 70620, 'end_time': 72860, 'text': '想象一下,用它来舀一勺“星星汤”,是不是很有趣?', 'startraw': '00:01:10,620', 'endraw': '00:01:12,860', 'time': '00:01:10,620 --> 00:01:12,860'}, {'line': 15, 'start_time': 73500, 'end_time': 76020, 'text': '而我最喜欢的星座之一,就是猎户座。它由三颗明亮的星星排成一条直线,构成了猎人的腰带。', 'startraw': '00:01:13,500', 'endraw': '00:01:16,020', 'time': '00:01:13,500 --> 00:01:16,020'}, {'line': 16, 'start_time': 76720, 'end_time': 79560, 'text': '一旦你找到了它,一定会觉得自己像是一位真正的天空探险家!', 'startraw': '00:01:16,720', 'endraw': '00:01:19,560', 'time': '00:01:16,720 --> 00:01:19,560'}, {'line': 17, 'start_time': 80210, 'end_time': 83210, 'text': '但其实,还有一个小秘密——', 'startraw': '00:01:20,210', 'endraw': '00:01:23,210', 'time': '00:01:20,210 --> 00:01:23,210'}, {'line': 18, 'start_time': 83940, 'end_time': 84800, 'text': '你根本不需要望远镜,也能轻松找到这些星座。', 'startraw': '00:01:23,940', 'endraw': '00:01:24,800', 'time': '00:01:23,940 --> 00:01:24,800'}, {'line': 19, 'start_time': 85390, 'end_time': 87810, 'text': '只需要一双明亮的眼睛、一个晴朗的夜晚,再加上一点点想象力,就能开启你的星座探索之旅啦!', 'startraw': '00:01:25,390', 'endraw': '00:01:27,810', 'time': '00:01:25,390 --> 00:01:27,810'}, {'line': 20, 'start_time': 92780, 'end_time': 94180, 'text': '如果你想知道从哪里开始,', 'startraw': '00:01:32,780', 'endraw': '00:01:34,180', 'time': '00:01:32,780 --> 00:01:34,180'}, {'line': 21, 'start_time': 94340, 'end_time': 98610, 'text': '你可以使用星图,或者在手机上直接显示星座的APP。', 'startraw': '00:01:34,340', 'endraw': '00:01:38,610', 'time': '00:01:34,340 --> 00:01:38,610'}, {'line': 22, 'start_time': 99220, 'end_time': 104340, 'text': '当我仰头凝视着满天繁星时,才意识到天空竟是如此神奇。', 'startraw': '00:01:39,220', 'endraw': '00:01:44,340', 'time': '00:01:39,220 --> 00:01:44,340'}, {'line': 23, 'start_time': 104340, 'end_time': 107190, 'text': '它仿佛是一本巨大的故事书,里面充满了无尽的冒险。', 'startraw': '00:01:44,340', 'endraw': '00:01:47,190', 'time': '00:01:44,340 --> 00:01:47,190'}, {'line': 24, 'start_time': 107910, 'end_time': 111050, 'text': '每一颗星星和每一个星座,都藏着一个等待被讲述的故事。', 'startraw': '00:01:47,910', 'endraw': '00:01:51,050', 'time': '00:01:47,910 --> 00:01:51,050'}, {'line': 25, 'start_time': 111720, 'end_time': 112300, 'text': '你呢?', 'startraw': '00:01:51,720', 'endraw': '00:01:52,300', 'time': '00:01:51,720 --> 00:01:52,300'}, {'line': 26, 'start_time': 112920, 'end_time': 116200, 'text': '下次当你抬头仰望星空时,不妨试着找到一个星座。', 'startraw': '00:01:52,920', 'endraw': '00:01:56,200', 'time': '00:01:52,920 --> 00:01:56,200'}, {'line': 27, 'start_time': 117080, 'end_time': 118340, 'text': '说不定你还能创造出属于自己的星座!', 'startraw': '00:01:57,080', 'endraw': '00:01:58,340', 'time': '00:01:57,080 --> 00:01:58,340'}, {'line': 28, 'start_time': 119010, 'end_time': 120390, 'text': '你会用星星勾勒出怎样的形状呢?', 'startraw': '00:01:59,010', 'endraw': '00:02:00,390', 'time': '00:01:59,010 --> 00:02:00,390'}, {'line': 29, 'start_time': 121080, 'end_time': 122040, 'text': '欢迎在评论区告诉我哦!', 'startraw': '00:02:01,080', 'endraw': '00:02:02,040', 'time': '00:02:01,080 --> 00:02:02,040'}, {'line': 30, 'start_time': 122470, 'end_time': 124250, 'text': '我很期待听你分享你的星空故事。', 'startraw': '00:02:02,470', 'endraw': '00:02:04,250', 'time': '00:02:02,470 --> 00:02:04,250'}]
2025-11-03 13:29:41,667 - INFO - 处理后目标字幕:target_srt_list=[{'line': 1, 'start_time': 4510, 'end_time': 10780, 'text': '大家好,亲爱的星空探索者们!你是否曾仰望夜空,对那些闪烁的星星充满好奇?', 'startraw': '00:00:04,510', 'endraw': '00:00:10,780', 'time': '00:00:04,510 --> 00:00:10,780'}, {'line': 2, 'start_time': 11480, 'end_time': 18330, 'text': '今天,就让我带你踏上一场奇妙的夜空之旅,一起揭开星星与星座的神秘面纱。', 'startraw': '00:00:11,480', 'endraw': '00:00:18,330', 'time': '00:00:11,480 --> 00:00:18,330'}, {'line': 3, 'start_time': 19100, 'end_time': 22060, 'text': '更棒的是,今晚我们甚至还能学会如何找到其中的一些呢!', 'startraw': '00:00:19,100', 'endraw': '00:00:22,060', 'time': '00:00:19,100 --> 00:00:22,060'}, {'line': 4, 'start_time': 22760, 'end_time': 26280, 'text': '一天傍晚,我拿起心爱的望远镜,走出家门。', 'startraw': '00:00:22,760', 'endraw': '00:00:26,280', 'time': '00:00:22,760 --> 00:00:26,280'}, {'line': 5, 'start_time': 27040, 'end_time': 32590, 'text': '天空一片漆黑,繁星点点,仿佛撒满了璀璨的亮片,为这片深邃的黑色画卷增添了几分梦幻色彩。', 'startraw': '00:00:27,040', 'endraw': '00:00:32,590', 'time': '00:00:27,040 --> 00:00:32,590'}, {'line': 6, 'start_time': 33360, 'end_time': 37560, 'text': '“哇,”我心想,“每一颗星星都藏着属于自己的故事啊!”', 'startraw': '00:00:33,360', 'endraw': '00:00:37,560', 'time': '00:00:33,360 --> 00:00:37,560'}, {'line': 7, 'start_time': 37560, 'end_time': 42880, 'text': '你知道吗?星星其实是一团巨大的火球,比我们的地球还要大得多。', 'startraw': '00:00:37,560', 'endraw': '00:00:42,880', 'time': '00:00:37,560 --> 00:00:42,880'}, {'line': 8, 'start_time': 43620, 'end_time': 46020, 'text': '它们之所以会发光,是因为内部正在燃烧着炽热的气体。', 'startraw': '00:00:43,620', 'endraw': '00:00:46,020', 'time': '00:00:43,620 --> 00:00:46,020'}, {'line': 9, 'start_time': 46720, 'end_time': 50910, 'text': '不过别担心,这些星星距离我们实在太遥远了,从这里看过去完全安全无虞。', 'startraw': '00:00:46,720', 'endraw': '00:00:50,910', 'time': '00:00:46,720 --> 00:00:50,910'}, {'line': 10, 'start_time': 51520, 'end_time': 54140, 'text': '当我继续凝视着夜空时,突然发现了一个令人惊叹的现象——', 'startraw': '00:00:51,520', 'endraw': '00:00:54,140', 'time': '00:00:51,520 --> 00:00:54,140'}, {'line': 11, 'start_time': 54930, 'end_time': 59310, 'text': '有些星星竟然连成了特定的形状,像是动物、人物,甚至是日常用品。', 'startraw': '00:00:54,930', 'endraw': '00:00:59,310', 'time': '00:00:54,930 --> 00:00:59,310'}, {'line': 12, 'start_time': 60010, 'end_time': 65610, 'text': '这些由星星组成的图案,就被称为“星座”。几千年来,人们一直用这种方式将天上的点点星光连接起来。', 'startraw': '00:01:00,010', 'endraw': '00:01:05,610', 'time': '00:01:00,010 --> 00:01:05,610'}, {'line': 13, 'start_time': 66300, 'end_time': 70080, 'text': '比如,那著名的北斗七星,看起来就像一把巨大的勺子。', 'startraw': '00:01:06,300', 'endraw': '00:01:10,080', 'time': '00:01:06,300 --> 00:01:10,080'}, {'line': 14, 'start_time': 70620, 'end_time': 72860, 'text': '想象一下,用它来舀一勺“星星汤”,是不是很有趣?', 'startraw': '00:01:10,620', 'endraw': '00:01:12,860', 'time': '00:01:10,620 --> 00:01:12,860'}, {'line': 15, 'start_time': 73500, 'end_time': 76020, 'text': '而我最喜欢的星座之一,就是猎户座。它由三颗明亮的星星排成一条直线,构成了猎人的腰带。', 'startraw': '00:01:13,500', 'endraw': '00:01:16,020', 'time': '00:01:13,500 --> 00:01:16,020'}, {'line': 16, 'start_time': 76720, 'end_time': 79560, 'text': '一旦你找到了它,一定会觉得自己像是一位真正的天空探险家!', 'startraw': '00:01:16,720', 'endraw': '00:01:19,560', 'time': '00:01:16,720 --> 00:01:19,560'}, {'line': 17, 'start_time': 80210, 'end_time': 83210, 'text': '但其实,还有一个小秘密——', 'startraw': '00:01:20,210', 'endraw': '00:01:23,210', 'time': '00:01:20,210 --> 00:01:23,210'}, {'line': 18, 'start_time': 83940, 'end_time': 84800, 'text': '你根本不需要望远镜,也能轻松找到这些星座。', 'startraw': '00:01:23,940', 'endraw': '00:01:24,800', 'time': '00:01:23,940 --> 00:01:24,800'}, {'line': 19, 'start_time': 85390, 'end_time': 87810, 'text': '只需要一双明亮的眼睛、一个晴朗的夜晚,再加上一点点想象力,就能开启你的星座探索之旅啦!', 'startraw': '00:01:25,390', 'endraw': '00:01:27,810', 'time': '00:01:25,390 --> 00:01:27,810'}, {'line': 20, 'start_time': 88540, 'end_time': 91920, 'text': ' ', 'startraw': '00:01:28,540', 'endraw': '00:01:31,920', 'time': '00:01:28,540 --> 00:01:31,920'}, {'line': 21, 'start_time': 92780, 'end_time': 94180, 'text': ' ', 'startraw': '00:01:32,780', 'endraw': '00:01:34,180', 'time': '00:01:32,780 --> 00:01:34,180'}, {'line': 22, 'start_time': 94340, 'end_time': 98610, 'text': ' ', 'startraw': '00:01:34,340', 'endraw': '00:01:38,610', 'time': '00:01:34,340 --> 00:01:38,610'}, {'line': 23, 'start_time': 99220, 'end_time': 104340, 'text': ' ', 'startraw': '00:01:39,220', 'endraw': '00:01:44,340', 'time': '00:01:39,220 --> 00:01:44,340'}, {'line': 24, 'start_time': 104340, 'end_time': 107190, 'text': ' ', 'startraw': '00:01:44,340', 'endraw': '00:01:47,190', 'time': '00:01:44,340 --> 00:01:47,190'}, {'line': 25, 'start_time': 107910, 'end_time': 111050, 'text': ' ', 'startraw': '00:01:47,910', 'endraw': '00:01:51,050', 'time': '00:01:47,910 --> 00:01:51,050'}, {'line': 26, 'start_time': 111720, 'end_time': 112300, 'text': ' ', 'startraw': '00:01:51,720', 'endraw': '00:01:52,300', 'time': '00:01:51,720 --> 00:01:52,300'}, {'line': 27, 'start_time': 112920, 'end_time': 116200, 'text': ' ', 'startraw': '00:01:52,920', 'endraw': '00:01:56,200', 'time': '00:01:52,920 --> 00:01:56,200'}, {'line': 28, 'start_time': 117080, 'end_time': 118340, 'text': ' ', 'startraw': '00:01:57,080', 'endraw': '00:01:58,340', 'time': '00:01:57,080 --> 00:01:58,340'}, {'line': 29, 'start_time': 119010, 'end_time': 120390, 'text': ' ', 'startraw': '00:01:59,010', 'endraw': '00:02:00,390', 'time': '00:01:59,010 --> 00:02:00,390'}, {'line': 30, 'start_time': 121080, 'end_time': 122040, 'text': ' ', 'startraw': '00:02:01,080', 'endraw': '00:02:02,040', 'time': '00:02:01,080 --> 00:02:02,040'}, {'line': 31, 'start_time': 122470, 'end_time': 124250, 'text': ' ', 'startraw': '00:02:02,470', 'endraw': '00:02:04,250', 'time': '00:02:02,470 --> 00:02:04,250'}]
[]
{}
config.line_roles={}
self.proxy_str=None
2025-11-03 13:29:46,849 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:47,850 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:48,850 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:49,853 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:50,854 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:51,855 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:52,856 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:53,857 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:54,858 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:55,858 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:56,859 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:57,860 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:58,861 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:29:59,862 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:30:00,864 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:30:01,865 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:30:02,866 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:30:03,867 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
2025-11-03 13:30:04,869 - INFO - Starting call to 'videotrans.tts._f5tts.F5TTS._item_task.._run', this is the 1st time calling it.
ttstype='Index-TTS'
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\task\_only_one.py", line 84, in run
File "videotrans\task\trans_create.py", line 442, in dubbing
File "videotrans\task\trans_create.py", line 682, in _tts
File "videotrans\tts\__init__.py", line 309, in run
File "videotrans\tts\_base.py", line 188, 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:'.

从日志可以看到问题仍然存在。虽然您在设置中将地址修改为 127.0.0.1:7860,但系统内部仍然错误地将 "http:" 解析为仓库ID。

这个问题可能是由于软件缓存了旧的配置或存在配置解析错误。请尝试以下解决方案:

  1. 完全重启软件:关闭 pyVideoTrans 并重新启动,确保新的配置生效。
  2. 检查配置文件:在软件根目录找到 videotrans/params.json 文件,用文本编辑器打开,搜索 "index-tts" 相关的配置项,确保地址字段是 127.0.0.1:7860 而不是包含 http:// 的格式。
  3. 临时解决方案:切换到其他配音渠道,如 Edge-TTS 或 OpenAI TTS,完成当前任务。
  4. 重新配置:在 TTS配音设置中,先切换到其他配音渠道保存,然后再切换回 Index-TTS 并重新输入地址 127.0.0.1:7860

如果以上方法都无法解决,建议暂时使用其他配音渠道,或者检查您的 Index-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