#6262 Traceback (most recent call last): File

2602:fd6f* Posted at: 54 minutes 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/tiktok-1784104973102.mp4,
输出结果保存到文件夹: D:/video/_video_out/tiktok-1784104973102-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/19132/2d79c588d5
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:CAMB AI, model_name: , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:兼容AI/本地模型,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.5, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址:


=
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 API 时,长时间未收到服务器的响应数据。

可能原因

  1. 当前网络环境无法稳定访问 CAMB AI 服务(CAMB AI 为在线云服务,若国内直连可能延迟高或连接不稳)。
  2. 音频文件较大、识别时间过长,超过了 HTTP 读取超时上限。
  3. CAMB AI API 的密钥无效、额度不足,或服务端响应缓慢。
  4. 主界面"网络代理"为空,可能缺少国外服务所需的代理。

解决方案

  1. 排查网络连通性:确认当前网络能否正常访问 CAMB AI 服务。若无法访问,请在主界面「网络代理」中填写可用代理(格式如 http://127.0.0.1:端口号)。
  2. 更换语音识别渠道:CAMB AI 不稳定时,建议改用本地内置渠道。你当前视频发音语言为越南语,可改用:

    • faster-whisper(内置) + large-v3 模型(已启用 CUDA,识别速度快);
    • openai-whisper(内置) + large-v3 模型(准确度高);
    • Omnilingual ASR(内置)Dolphin(内置)(支持亚洲/小语种)。
  3. 检查 CAMB AI 配置:在 菜单-翻译设置-对应渠道设置面板 内确认 API Key 是否正确、账户余额是否充足。
  4. 缩短单次识别时长:先用剪辑工具截取 1-2 分钟视频片段测试,若短片段可识别,说明原视频音频过长导致超时,可先分离人声后再识别,或改用本地模型。
  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