#5039 TaskCfgVTT(uuid='fde1248bed', name='G:/视频/wenjian/大师/姿势的精神/1周总概/3/Figure Drawing_ The Spirit of the Pose _ Part 1_ Intro

120.199* Posted at: 2 hours ago

Connection error.语音识别阶段出错:Qwen-ASR(本地), 翻译字幕阶段出错: 兼容AI/本地模型, 配音阶段出错:Edge-TTS(免费)
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 "openai\_base_client.py", line 1037, in request
......
"openai\_client.py", line 418, in _send_with_auth_retry
File "openai\_base_client.py", line 964, in _send_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] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 585, in trans
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 75, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1072, in request
openai.APIConnectionError: Connection error.
TaskCfgVTT(uuid='fde1248bed', name='G:/视频/wenjian/大师/姿势的精神/1周总概/3/Figure Drawing_ The Spirit of the Pose Part 1 Intro and Theory New Masters Academy.mp4', dirname='G:/视频/wenjian/大师/姿势的精神/1周总概/3', noextname='Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy', basename='Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy.mp4', ext='mp4', target_dir='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4', cache_folder='D:/shipingongju/vido/tmp/24836/fde1248bed', is_cuda=True, source_language='英语', source_language_code='en', source_sub='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4/en.srt', source_wav='D:/shipingongju/vido/tmp/24836/fde1248bed/en.wav', source_wav_output='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4/zh-cn.srt', target_wav='D:/shipingongju/vido/tmp/24836/fde1248bed/target.wav', target_wav_output='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4/zh-cn.m4a', translate_type=8, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=2, model_name='1.7B', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='G:/视频/wenjian/大师/姿势的精神/1周总概/3/_video_out/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory New Masters Academy-mp4/Figure Drawing The Spirit of the Pose Part 1 Intro and Theory _ New Masters Academy.mp4', novoice_mp4='D:/shipingongju/vido/tmp/24836/fde1248bed/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/shipingongju/vido/tmp/24836/fde1248bed/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/shipingongju/vido

1 Replies

核心原因:翻译阶段 使用的“兼容AI/本地模型”渠道配置的 API 地址或端口错误,导致软件无法连接到该服务(目标计算机积极拒绝连接)。Qwen-ASR(本地)Edge-TTS 的错误可能同样由网络配置或服务不可达引起。

解决方案:

  1. 检查翻译渠道 API 配置

    • 打开菜单 → 翻译设置 → 兼容AI/本地模型。
    • 确认 URL 填写正确,包括协议(http://https://)、IP/域名、端口号(例如 http://localhost:11434/v1 若使用 Ollama)。
    • 确保该 API 服务已启动且可以正常访问(例如在浏览器或 curl 中测试)。
  2. 检查网络代理

    • 如果上述 API 地址需要代理(例如位于境外),请在主界面正确填写“网络代理地址”(格式如 http://127.0.0.1:7890)。
    • 如果不需要代理,确保该框为空。
  3. Qwen-ASR(本地) 模型下载

    • 首次使用 Qwen-ASR(本地) 需联网下载模型。若网络不通(如国内无法访问 HuggingFace),请开启代理或将模型手动放入 models/ 目录。
  4. Edge-TTS 限流/连接

    • Edge-TTS 为微软免费服务,通常国内可直接访问。若仍报错,请检查网络,并在高级选项中将“配音并发数”设为 1、“配音后暂停秒”设为 5~10 秒。

若以上排查后仍无法解决,请提供 logs/ 目录下最新的完整日志内容(底部约30行)以便进一步分析。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist