#6524 [WinError 10054] 远程主机强迫关闭了一个现有的连接。[字节语音大模型极速版, 字节大模型, Elevenlabs.io]Traceback (most recent call last):

222.91.**8 Posted at: 17 hours ago

[WinError 10054] 远程主机强迫关闭了一个现有的连接。[字节语音大模型极速版, 字节大模型, Elevenlabs.io]
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions

yield

File "httpx\_transports\default.py", line 250, in handle_request

resp = self._pool.handle_request(req)

File "httpcore\_sync\connection_pool.py", line 216, in handle_request

raise exc from None

File "httpcore\_sync\connection_pool.py", line 196, in handle_request

response = connection.handle_request(

File "httpcore\_sync\connection.py", line 99, in handle_request

raise exc

File "httpcore\_sync\connection.py", line 76, in handle_request

stream = self._connect(request)

File "httpcore\_sync\connection.py", line 154, in _connect

stream = stream.start_tls(**kwargs)

File "httpcore\_backends\sync.py", line 152, in start_tls

with map_exceptions(exc_map):

File "contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

Fil
......
me='19', basename='19.mp4', ext='mp4', target_dir='D:/shipin2222/19-mp4/ru', shared_target_dir='D:/shipin2222/19-mp4', cache_folder='D:/pyvideotrans/tmp/54520/7b6d797b43-ru', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='D:/shipin2222/19-mp4/zh-cn.srt', source_wav='D:/shipin2222/19-mp4/_shared/zh-cn.wav', source_wav_output='D:/shipin2222/19-mp4/zh-cn.m4a', target_language='俄罗斯语', target_language_code='ru', target_sub='D:/shipin2222/19-mp4/ru/ru.srt', target_wav='D:/pyvideotrans/tmp/54520/7b6d797b43-ru/target.wav', target_wav_output='D:/shipin2222/19-mp4/ru/ru.m4a', translate_type=13, tts_type=20, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Roger - Laid-Back Casual Resonant', voice_role_auto_mode=True, voice_autorate=True, video_autorate=True, dubbing_thread_workers=2, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=8, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, target_language_pairs=[{'language': '俄罗斯语', 'code': 'ru'}, {'language': '哈萨克语', 'code': 'kk'}], target_languages=['俄罗斯语', '哈萨克语'], target_language_codes=['ru', 'kk'], multi_target_language_serial=True, multi_target_language_workers=0, resolved_multi_target_language_workers=2, stage_parallel_workers=2, video_slow_clip_workers=2, process_name='19.mp4 - 俄罗斯语', subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/shipin2222/19-mp4/ru/19.mp4', novoice_mp4='D:/pyvideotrans/tmp/54520/7b6d797b43-ru/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/shipin2222/19-mp4/_shared/instrument.wav', vocal='D:/shipin2222/19-mp4/_shared/vocal.wav', clear_cache=False, 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.03
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

这是网络连接错误。WinError 10054 表示 ElevenLabs 服务器在请求过程中主动断开了连接,常见原因是国内网络直连国外服务不稳定、被干扰,或账户/密钥异常。

解决方案:

  1. ElevenLabs 是国外服务,大陆网络直连极易失败。请在主界面「网络代理」栏填写可正常访问外网的代理地址,格式如 http://127.0.0.1:7890
  2. 确认 ElevenLabs 的 API Key 是否正确、账户余额/订阅额度是否充足。
  3. 降低请求频率,避免被服务端判定为高频调用而强制断连:进入「菜单 → 工具 → 高级选项 → 字幕配音调整」,将「并发配音线程数」设为 1,「配音后暂停秒」设为 5-10。
  4. 若仅个别字幕行连接失败,可先试听该角色声音,或切换其他配音渠道(如 Edge-TTS)继续任务。
  5. 你当前为 v4.03 旧版本,建议更新到最新版 v4.09 后重试,旧版本可能缺少必要的网络重试修复。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource