#2417 TaskCfg(cache_folder='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb', target_dir='D:/视频/短剧/重返八零共白首/18/_vide

35.74* Posted at: 2 hours ago 👁4

配音阶段出错 [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/19088/0b468cebbb', target_dir='D:/视频/短剧/重返八零共白首/18/_video_out/09-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:/视频/短剧/重返八零共白首/18/_video_out/09-mp4/zh-cn.srt', target_sub='D:/视频/短剧/重返八零共白首/18/_video_out/09-mp4/en.srt', source_wav='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb/zh-cn.wav', source_wav_output='D:/视频/短剧/重返八零共白首/18/_video_out/09-mp4/zh-cn.m4a', target_wav='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb/target.wav', target_wav_output='D:/视频/短剧/重返八零共白首/18/_video_out/09-mp4/en.m4a', subtitles='', novoice_mp4='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb/novoice.mp4', noextname='09', shibie_audio=None, targetdir_mp4='D:/视频/短剧/重返八零共白首/18/_video_out/09-mp4/09.mp4', instrument='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb/instrument.wav', vocal='D:/shipinfanyi/win-pyvideotrans-v3.91/tmp/19088/0b468cebbb/vocal.wav', back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, 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:/视频/短剧/重返八零共白首/18/09.mp4', basename='09.mp4', ext='mp4', dirname='D:/视频/短剧/重返八零共白首/18', shound_del_name=None, uuid='0b468cebbb', 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

该错误表明软件无法连接到您本地部署的 CosyVoice 服务。请按以下步骤检查和解决:

  1. 确认 CosyVoice 服务已启动

    • 您需要先在本地启动 CosyVoice 的 WebUI 服务。通常启动命令类似 python app.py 或运行其提供的启动脚本。
    • 启动成功后,命令行窗口会显示一个本地地址,例如 http://127.0.0.1:7860
  2. 在软件中正确配置服务地址

    • 在 pyVideoTrans 主界面,找到第 5 行的 网络代理 输入框。
    • 将 CosyVoice 服务启动后显示的地址(如 http://127.0.0.1:7860)完整填入该输入框。
    • 注意:此处的“网络代理”框也用于指定本地 TTS/ASR 服务的地址。
  3. 检查服务端口和防火墙

    • 确保 CosyVoice 服务使用的端口(默认 7860)没有被其他程序占用。
    • 暂时关闭 Windows 防火墙或杀毒软件,测试是否为拦截导致。
  4. 使用预打包的 CosyVoice 整合包(推荐)

    • 如果您尚未部署 CosyVoice,建议直接下载并使用官方提供的 Windows 整合包,一键启动更稳定。
    • 下载地址:CosyVoice2 整合包win版

完成以上步骤后,重新在 pyVideoTrans 中选择 CosyVoice 进行配音即可。

请查看更多参考文档:

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