点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1988 TaskCfg(cache_folder=None, target_dir='G:/win-pyvideotrans/output/translate', remove_noise=False, is_separate=False, det

104.238* Posted at: 1 day ago 👁17

翻译字幕阶段出错:[DeepLx] 连接被拒绝,请确保本地服务已启动并正在运行:
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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='localhost', port=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 905, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
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\translator\_deeplx.py", line 64, in _item_task
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='localhost', port=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

TaskCfg(cache_folder=None, target_dir='G:/win-pyvideotrans/output/translate', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='EN-US', target_language_code='ZH-HANS', source_sub='D:/FFOutput/Go your own way Lucy Lawless 00_00_00-00_10_10.srt', target_sub='G:/win-pyvideotrans/output/translate/Go your own way Lucy Lawless 00_00_00-00_10_10.ZH-HANS.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='Go your own way Lucy Lawless 00_00_00-00_10_10', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=17, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='D:/FFOutput/Go your own way Lucy Lawless 00_00_00-00_10_10.srt', basename='Go your own way _ Lucy Lawless 00_00_00-00_10_10.srt', ext='srt', dirname='D:/FFOutput', shound_del_name=None, uuid='c02d3f452f', 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.22621-SP0
version:v3.89
frozen:True
language:zh
root_dir:G:/win-pyvideotrans

1 Replies

错误表明软件无法连接到本地的 DeepLX 翻译服务。DeepLX 是一个需要您自行下载并启动的本地翻译服务,pyVideoTrans 本身不包含它。

请按以下步骤解决:

  1. 下载并启动 DeepLX 服务

    • 前往 DeepLX 的 GitHub 发布页面下载适用于 Windows 的版本(例如 deeplx-*-windows-amd64.zip)。
    • 解压后,双击运行 deeplx.exe。您会看到一个命令行窗口,显示服务正在 localhost:1188 上运行(这正是错误日志中尝试连接的地址和端口)。
    • 重要:在运行 pyVideoTrans 进行翻译时,请保持这个命令行窗口处于打开状态。
  2. 在 pyVideoTrans 中配置

    • 确保在软件的翻译设置中,选择的翻译渠道是 “DeepLX”(而不是“DeepL”)。
    • 通常无需额外配置,因为软件默认会连接 localhost:1188。如果您的 DeepLX 服务运行在其他端口,需要在设置中修改。
  3. 替代方案(如果不想使用 DeepLX)

    • 在 pyVideoTrans 的翻译设置中,直接切换到其他可用的翻译渠道,例如 Google(需要配置网络代理)、微软DeepSeek 等 AI 模型。

总结:您需要先独立运行 DeepLX 程序,然后再使用 pyVideoTrans 进行翻译。如果 DeepLX 服务未启动,就会出现此连接拒绝错误。

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