#1287 HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /v2/audio/speech_with_prompt (Caused by NameRes

42.224* Posted at: 7 hours ago 👁15

HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /v2/audio/speech_with_prompt (Caused by NameResolutionError(": Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)"))


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:D:/videotransv383

5 Replies

这个错误表明在尝试调用 OpenAI TTS 服务时,软件无法解析主机名 http。这通常是由于您在 TTS 设置中错误地配置了 OpenAI 的 API 地址。

请按以下步骤检查和修正:

  1. 在软件主界面,点击菜单栏的 设置 -> TTS设置
  2. 在“OpenAI TTS”配置区域,检查 API地址 字段。
  3. 确保该字段填写的是完整的、正确的基础 URL,例如:https://api.openai.com 或您使用的代理地址(如 https://your-proxy.com/v1)。
  4. 请勿只填写 httphttps,这会导致上述解析失败。
  5. 确认您的 API密钥 也已正确填写。

修正 API 地址后,问题应该可以解决。如果问题依旧,请提供 D:/videotransv383/logs/ 目录下最新的日志文件内容。


Application started at 2025-11-03 13:04:17

2025-11-03 13:04:17,835 - INFO - 返回缓存的编解码器 Windows-264: h264_nvenc
self.proxy_str=None
2025-11-03 13:05:46,618 - INFO - 最终配置信息:self.cfg=TaskCfg(cache_folder='D:/videotransv383/tmp5668/4f235080ce', 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/tmp5668/4f235080ce/en.wav', source_wav_output='D:/youtube_download/Downloaded_Videos/xx/Stars/en.wav', target_wav='D:/videotransv383/tmp5668/4f235080ce/target.wav', target_wav_output='D:/youtube_download/Downloaded_Videos/xx/Stars/zh-cn.wav', subtitles='', novoice_mp4='D:/videotransv383/tmp5668/4f235080ce/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=13, 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='4f235080ce')
2025-11-03 13:05:46,647 - INFO - 返回缓存的编解码器 Windows-264: h264_nvenc
2025-11-03 13:05:50,975 - INFO - segment_0 instruments done
2025-11-03 13:05:52,299 - INFO - segment_0 vocals done

self.proxy_str=None
2025-11-03 13:05:57,441 - INFO - 开始创建 pid:self.pidfile='D:/videotransv383/tmp5668/6600.lock'
2025-11-03 13:05:59,868 - INFO - Processing audio with duration 02:15.300
2025-11-03 13:06:00,074 - INFO - VAD filter removed 00:33.540 of audio
2025-11-03 13:06:00,074 - 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:06:00,114 - DEBUG - Processing segment at 00:00.000
2025-11-03 13:06:00,731 - DEBUG - Processing segment at 00:28.120
2025-11-03 13:06:01,132 - DEBUG - Processing segment at 00:55.900
2025-11-03 13:06:01,631 - DEBUG - Processing segment at 01:25.240
self.proxy_str=None
self.aisendsrt=True
2025-11-03 13:06:08,265 - INFO - #### 字幕翻译前准备1:self.aisendsrt=True,self.trans_thread=20
2025-11-03 13:06:08,265 - INFO - 字幕翻译前准备2
2025-11-03 13:06:08,265 - INFO - #### [以完整SRT格式发送翻译],it应是dict列表
2025-11-03 13:06:17,449 - INFO - #### [以完整SRT格式发送翻译],it应是dict列表
2025-11-03 13:06:22,235 - 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你并不需要望远镜,就能轻松找到这些美丽的星座!\n\n20\n00:01:28,540 --> 00:01:31,920\n只需要一双明亮的眼睛、一个晴朗的夜晚,再加上一点丰富的想象力,就能开启一场奇妙的星空之旅!', '21\n00:01:32,780 --> 00:01:34,180\n如果你想知道从哪里开始,\n\n22\n00:01:34,340 --> 00:01:38,610\n你可以使用星图,或者在手机上直接显示星座的应用程序。\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': 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:06:34,488 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:38,196 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:41,932 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:45,638 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:49,326 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:53,035 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:06:56,756 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:00,476 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:04,195 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:07,908 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:11,629 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:15,338 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:19,059 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:22,785 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:26,493 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:30,222 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:33,939 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:37,649 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:41,370 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:45,090 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:48,813 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:52,518 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:56,223 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:07:59,928 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:03,631 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:07,336 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:11,044 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:14,746 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:18,462 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:22,180 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 13:08:25,890 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 60, in create_connection
File "socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 205, in _new_conn
urllib3.exceptions.NameResolutionError: : Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /v2/audio/speech_with_prompt (Caused by NameResolutionError(": Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)"))

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 282, in run
File "videotrans\tts\_base.py", line 188, in run
File "videotrans\tts\_chatterbox.py", line 62, 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\_chatterbox.py", line 46, in _run
File "videotrans\tts\_chatterbox.py", line 95, in _item_task_clone
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /v2/audio/speech_with_prompt (Caused by NameResolutionError(": Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)"))

根据日志,问题出现在使用 ChatterBox TTS 服务进行配音时。错误信息 Failed to resolve 'http' 表明软件无法解析主机名 "http",这通常是由于在 TTS 设置中错误地配置了 ChatterBox 的 API 地址。

请按以下步骤检查和修正:

  1. 在软件主界面,点击菜单栏的 设置 -> TTS设置
  2. 找到 ChatterBox TTS 的配置区域。
  3. 检查 API地址 字段。确保该字段填写的是完整的、正确的基础 URL,例如:https://api.chatterbox.com 或您实际使用的服务地址。请勿只填写 httphttps,这会导致上述解析失败。
  4. 确认您的 API密钥 也已正确填写。

修正 API 地址后,问题应该可以解决。如果问题依旧,请确保您的网络连接正常,并且所填写的 ChatterBox 服务地址是可访问的。

我没有使用ChatterBox TTS ,我用的是ChatTTS,ChatterBox TTS 我没配置

根据日志分析,您当前使用的是 ChatterBoxTTS 服务,但您表示并未配置它。这表明软件配置与实际使用存在不一致。请按以下步骤检查和修正:

  1. 检查当前 TTS 配置
    在软件主界面,点击菜单栏的 设置 -> TTS设置。查看当前选中的配音渠道是什么。根据日志中的 tts_type=13,软件正在使用 ChatterBoxTTS
  2. 切换回 ChatTTS
    如果您希望使用 ChatTTS,请在 TTS 设置中将配音渠道切换为 ChatTTS。确保 ChatTTS 的相关配置(如模型路径等)是正确的。
  3. 检查高级选项
    进入 工具 -> 高级选项,检查是否有任何设置强制指定了 TTS 服务为 ChatterBoxTTS

问题的根本原因是软件配置与实际处理流程不匹配。将 TTS 设置更正为您实际想要使用的服务(ChatTTS)后,应该能解决这个连接错误。

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