#6257 :{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/19316/1785

2405:4800* Posted at: 53 minutes ago

:
{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/19316/1785719269.5014205-cambtts.wav', 'tts_type': 32}
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 127, in iter
File "httpcore\_sync\connection_pool.py", line 367, in iter
File "httpcore\_sync\connection_pool.py", line 363, in iter
File "httpcore\_sync\http11.py", line 349, in iter
File "httpcore\_sync\http11.py", line 341, in iter
File "httpcore\_sync\http11.py", line 210, in _receive_response_body
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\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 221, in run
File "videotrans\tts\_base.py", line 130, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_cambtts.py", line 104, in _run
File "camb\text_to_speech\client.py", line 107, in tts
File "camb\text_to_speech\raw_client.py", line 136, in
File "httpx\_models.py", line 897, in iter_bytes
File "httpx\_models.py", line 951, in iter_raw
File "httpx\_client.py", line 153, in iter
File "httpx\_transports\default.py", line 126, in iter
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


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

1 Replies

这是网络读取超时导致的。httpx 在请求 CAMB TTS 服务时,服务器超过等待时间仍未返回完整响应,一般是网络不稳定、代理干扰或服务端繁忙所致。

处理步骤:

  1. 检查网络:确认当前网络能稳定访问 CAMB AI 服务;若开启了代理,请确认代理填写正确,或清空主界面「网络代理」文本框后重试。
  2. 降低请求频率或大小:进入 菜单 -> 工具 -> 高级选项 -> 字幕配音调整,将「并发配音线程数」设为 1,并酌情增加「配音后暂停秒」;若翻译/配音文本较长,可减少每批字幕行数,避免单次请求过大导致超时。
  3. 等待后重试:CAMB 服务端临时负载过高时会表现为超时,可稍等几分钟再重新执行。软件内置了失败重试机制,若重试次数不够,可在「失败后重试次数」中适当调大。
  4. 若以上无效,请提供软件安装目录下 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