#4336 concurrent.futures._base.CancelledError

240e:399* Posted at: 1 hour ago 👁6

:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 421, in run
File "videotrans\tts\_base.py", line 181, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 337, in _run
File "videotrans\tts\_f5tts.py", line 260, in _item_task_voxcpm
File "gradio_client\client.py", line 499, in predict
File "gradio_client\client.py", line 1484, in result
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "gradio_client\client.py", line 1080, in _inner
File "gradio_client\client.py", line 1188, in _predict
File "gradio_client\client.py", line 1388, in _sse_fn_v1plus
File "gradio_client\utils.py", line 387, in get_pred_from_sse_v1plus
File "concurrent\futures\thread.py", line 58, in run
File "gradio_client\utils.py", line 503, in stream_sse_v1plus
concurrent.futures._base.CancelledError


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/job/voiceTrans/win-pyvideotrans-v3.99-428

1 Replies

这是 F5-TTS 配音服务连接或响应异常导致的 CancelledError,通常表示 API 请求被中断或超时。

解决方案:

  1. 检查 F5-TTS 服务是否正在运行,命令行窗口是否被关闭。
  2. 确认软件中的 API 地址设置正确(默认 http://127.0.0.1:7860),端口没有被其他程序占用。
  3. 确保参考音频文件放在 软件目录/f5-tts 文件夹内,且时长在 3-10 秒之间。
  4. 在菜单 “工具/选项 -> 高级选项 -> 字幕配音调整” 中,将“并发配音线程数”设为 1,“配音后暂停秒”设为 5-10 秒,避免请求过快。
  5. 重启 F5-TTS 服务并重新执行任务。

请查阅相关文档:

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