#6253 Traceback (most recent call last): File

2405:4800* Posted at: 4 hours ago

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\http_proxy.py", line 344, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 224, in _receive_event
File "httpcore\_backends\sync.py", line 124, in read
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ReadTimeout: The read operation timed out

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 62, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 99, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_camb.py", line 63, in _exec
File "camb\transcription\client.py", line 92, in create_transcription
File "camb\transcription\raw_client.py", line 76, in create_transcription
File "camb\core\http_client.py", line 318, in request
File "httpx\_client.py", line 825, in 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.ReadTimeout: The read operation timed out

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/video/0919_151_925[HD]_musicaldown.com_1785687951.mp4,
输出结果保存到文件夹: D:/video/_video_out/0919_151_925[HD]_musicaldown.com_1785687951-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/19768/c7a329adb6
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:CAMB AI, model_name: , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:OpenRouter,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.22631-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是调用 CAMB AI 云端语音识别接口时发生网络读取超时(httpx.ReadTimeout: The read operation timed out)导致的。报错出现在语音识别阶段,说明客户端向 CAMB AI 服务器发起了音频识别请求,但在等待响应时超时中断,尚未进入后续翻译阶段。

解决步骤:

  1. 检查当前网络到 CAMB AI 服务器是否稳定。若 CAMB AI 服务位于国外,你需要在主界面第 5 行的「网络代理」中填写可用代理(格式如 http://127.0.0.1:7890)。当前你的日志中代理地址为空;若你不需要代理,则重点检查本地网络是否波动、丢包。
  2. 长视频或大体积音频会一次性上传给云端识别,处理时间过长容易触发读取超时。建议在 菜单 → 工具 → 高级选项 → 语音识别参数 中勾选「Whisper预分割音频」,让音频先切成小段再发送识别,可显著降低单次请求耗时和超时概率。
  3. 若使用在线 API 频繁超时,可在高级选项 → 语音识别参数中适当增大「云API识别暂停秒」,同时确认 CAMB AI 的 API Key、余额及模型配置无误,避免因鉴权失败导致服务端响应异常缓慢。
  4. 如果网络问题持续无法解决,建议改用支持越南语的本地离线识别渠道,避免依赖云端网络:

    • faster-whisper(内置),模型选 large-v3
    • openai-whisper(内置),模型选 large-v3
    • Dolphin(内置),专注亚洲语言
  5. 重新执行一次任务,若仍复现同样报错,请提供软件安装目录下 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 via ko-fi.com

Dondate via PayPal

Related resource