#4314 TaskCfgVTT(is_cuda=True, uuid='00d7d8c483', cache_folder='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483', target_di

172.96* Posted at: 7 hours ago 👁12

配音阶段出错 [OmniVoice] [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\_omnivoice.py", line 94, in _item_task
File "gradio_client\client.py", line 163, in init
File "gradio_client\client.py", line 936, 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 213, in run
File "videotrans\task\trans_create.py", line 735, in dubbing
File "videotrans\task\trans_create.py", line 1047, in _tts
File "videotrans\tts\__init__.py", line 417, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_omnivoice.py", line 61, in _exec
File "videotrans\tts\_base.py", line 235, in _local_mul_thread
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "videotrans\tts\_omnivoice.py", line 96, in _item_task
videotrans.configure._except.StopRetry: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
TaskCfgVTT(is_cuda=True, uuid='00d7d8c483', cache_folder='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483', target_dir='H:/mid4/_video_out/[email protected]2_8K-wav', source_language='日语', source_language_code='ja', source_sub='H:/mid4/_video_out/[email protected]2_8K-wav/ja.srt', source_wav='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483/ja.wav', source_wav_output='H:/mid4/_video_out/[email protected]2_8K-wav/ja.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='H:/mid4/_video_out/[email protected]2_8K-wav/zh-cn.srt', target_wav='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483/target.wav', target_wav_output='H:/mid4/_video_out/[email protected]2_8K-wav/zh-cn.m4a', name='H:/mid4/[email protected]2_8K.wav', noextname='[email protected]2_8K', basename='[email protected]2_8K.wav', ext='wav', dirname='H:/mid4', shound_del_name=None, translate_type=12, tts_type=2, volume='+30%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ja', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=1, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='H:/mid4/_video_out/[email protected]2_8K-wav/[email protected]2_8K.mp4', novoice_mp4='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='D:/win-pyvideotrans-v3.99-420/tmp/17460/00d7d8c483/vocal.wav', back_audio='', clear_cache=True, background_music=None, subtitle_type=2, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.99-420

1 Replies

[WinError 10061] 连接被拒绝,说明软件无法连接到你在本地部署的 OmniVoice-TTS 服务。

这是步骤:

  1. 确认 OmniVoice-TTS 的服务端正在运行(启动它的终端窗口不能关闭)。通常它是一个基于 Gradio 的 WebUI,默认地址类似 http://127.0.0.1:7860
  2. 在 pyVideoTrans 中检查 API 地址:点击菜单 TTS设置F5-TTS(OmniVoice 共用此设置页面),确保 API 地址 一栏填写正确(例如 http://127.0.0.1:7860)。注意结尾不要有多余的 /
  3. 如果你使用了声音克隆(角色选择了 clone),请确认 f5-tts 文件夹内有合适的参考音频,并且参考音频时长在 3-10 秒之间。
  4. 检查 Windows 防火墙或安全软件是否阻止了本地连接,必要时将 OmniVoice 的进程和端口加入信任列表。
  5. 如果问题依旧,可尝试重启 OmniVoice 服务端,然后再运行配音任务。

请查阅相关文档:

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.

Related resource