#2497 TaskCfg(cache_folder='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3', target_dir='D:/视频/短剧/中国奇谭2/_video_out

18.180* Posted at: 1 day ago 👁18

配音阶段出错 [CosyVoice] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "videotrans\tts\_cosyvoice.py", line 59, in _item_task_cosyvoice2
File "gradio_client\client.py", line 162, in init
File "gradio_client\client.py", line 931, in _get_config
File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\trans_create.py", line 501, in dubbing
File "videotrans\task\trans_create.py", line 786, in _tts
File "videotrans\tts\__init__.py", line 276, in run
File "videotrans\tts\_base.py", line 190, in run
File "videotrans\tts\_base.py", line 208, in _local_mul_thread
File "videotrans\tts\_cosyvoice.py", line 161, in _item_task
File "videotrans\tts\_cosyvoice.py", line 158, in _run
File "videotrans\tts\_cosyvoice.py", line 61, in _item_task_cosyvoice2
videotrans.configure._except.StopRetry: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

TaskCfg(cache_folder='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3', target_dir='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4', remove_noise=True, is_separate=True, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='英语', source_language_code='zh-cn', target_language_code='en', source_sub='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4/zh-cn.srt', target_sub='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4/en.srt', source_wav='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3/zh-cn.wav', source_wav_output='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4/zh-cn.m4a', target_wav='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3/target.wav', target_wav_output='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4/en.m4a', subtitles='', novoice_mp4='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3/novoice.mp4', noextname='以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037', shibie_audio=None, targetdir_mp4='D:/视频/短剧/中国奇谭2/_video_out/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037-mp4/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037.mp4', instrument='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3/instrument.wav', vocal='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/34784/7be67f4ea3/vocal.wav', 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=False, translate_type=1, tts_type=11, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='D:/视频/短剧/中国奇谭2/以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037.mp4', basename='以_蛇大_的视角打开《中国奇谭2》,善良的种子不会辜负及时雨_1080p_1767667187037.mp4', ext='mp4', dirname='D:/视频/短剧/中国奇谭2', shound_del_name=None, uuid='7be67f4ea3', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/shipinfanyi/win-pyvideotrans-v3.91

1 Replies

错误 [WinError 10061] 由于目标计算机积极拒绝,无法连接。 表明软件无法连接到 CosyVoice 服务。这通常是因为 CosyVoice 本地服务没有启动或启动失败。

请按以下步骤排查和解决:

  1. 确认 CosyVoice 服务已启动

    • 在软件主界面,点击菜单栏的 工具 -> CosyVoice2
    • 在弹出的窗口中,点击 启动 按钮。等待控制台显示服务启动成功的提示(例如 Running on local URL: http://127.0.0.1:7860)。
    • 关键检查:启动后,请勿关闭弹出的命令窗口,该窗口是 CosyVoice 的服务进程。
  2. 检查服务地址和端口

    • 启动 CosyVoice 后,默认服务地址是 http://127.0.0.1:7860
    • 在软件主界面的 网络代理 输入框中,确保没有填写任何内容(CosyVoice 是本地服务,不需要代理)。如果填写了代理地址(如 http://127.0.0.1:7860),请清空该输入框。
  3. 如果启动失败

    • 首次使用:请确保已按照官方文档下载并放置了 CosyVoice 模型文件。通常需要从 HuggingFace 下载模型并放置到指定目录(如 pyvideotrans/tts/cosyvoice2/models)。
    • 端口冲突:如果端口 7860 已被其他程序占用,CosyVoice 会启动失败。可以尝试修改 CosyVoice 启动窗口中的端口号(例如改为 7861),然后在软件主界面的 网络代理 框中填入 http://127.0.0.1:7861 再试。
    • 依赖问题:如果从未成功启动过,可能是环境依赖缺失。请参考官方文档,使用预打包的 CosyVoice Windows 整合包。
  4. 验证连接

    • 在浏览器中访问 http://127.0.0.1:7860(或你修改后的端口),如果能看到 CosyVoice 的 Web 界面,说明服务运行正常。

完成以上步骤后,重新尝试视频翻译任务。

请查看更多参考文档:

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

Similar issues already exist

Trending Questions