#4813 TaskCfgVTT(is_cuda=True, uuid='49980b64a1', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1', tar

183.14* Posted at: 1 hour ago

配音阶段出错 [Index TTS(本地)] [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
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 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

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

Traceback (most recent call last):
File "videotrans\tts\_f5tts.py", line 325, in _run
......
e 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 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

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 1048, in _tts
File "videotrans\tts\__init__.py", line 421, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_f5tts.py", line 51, 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\_f5tts.py", line 344, in _item_task
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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 331, in _run
videotrans.configure._except.StopRetry: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
TaskCfgVTT(is_cuda=True, uuid='49980b64a1', cache_folder='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1', target_dir='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4', source_language='英语', source_language_code='en', source_sub='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4/en.srt', source_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1/en.wav', source_wav_output='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4/zh-cn.srt', target_wav='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1/target.wav', target_wav_output='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4/zh-cn.m4a', name='K:/020/Video/3 - Landscape Creation with the latest Features/10. The new Shallow Water System with Collision.mp4', noextname='10. The new Shallow Water System with Collision', basename='10. The new Shallow Water System with Collision.mp4', ext='mp4', dirname='K:/020/Video/3 - Landscape Creation with the latest Features', shound_del_name=None, translate_type=4, tts_type=11, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Sound_005_90.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=True, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='K:/020/_video_out/10. The new Shallow Water System with Collision-mp4/10. The new Shallow Water System with Collision.mp4', novoice_mp4='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='K:/MACHI/win-pyvideotrans-v3.99-428/tmp/88856/49980b64a1/vocal.wav', back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=False, recogn2pass=False, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:K:/MACHI/win-pyvideotrans-v3.99-428

1 Replies

这是由于 Windows 端口资源耗尽导致的。Index-TTS 作为本地 API 配音渠道,需要在后台保持一个 Gradio 服务进程。当你连续快速请求配音时,软件会频繁创建新的网络连接,Windows 短时间内无法释放端口,从而触发 [WinError 10048] 错误。

解决步骤如下:


1. 确保 Index-TTS 服务正常运行

  • 打开你启动 Index-TTS 服务的终端窗口,确认没有报错且服务仍在监听(通常显示 Running on local URL: http://127.0.0.1:7860)。
  • 如果服务已关闭或崩溃,请重新启动 Index-TTS 服务。

2. 降低并发请求频率

在软件主界面点击 菜单 → 工具/选项 → 高级选项,然后:

  • 配音后暂停秒 设为 5 或更大。
  • 并发配音线程数 设为 1

3. 检查 API 地址配置

菜单 → TTS设置 → F5-TTS/Index-TTS 中,确认 API 地址为 http://127.0.0.1:7860,且端口号与你启动的服务一致(不要有空格或多余字符)。


请查阅相关文档:

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