#6300 :{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/4212/17858

89.116* Posted at: 58 minutes ago

:
{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/4212/1785806414.2011147-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

该报错是 CAMB TTS 配音请求在读取响应时超时(httpx.ReadTimeout),通常是因为与 CAMB 服务端之间的网络连接不稳定、服务响应慢,或代理配置异常导致,并非视频文件本身损坏。

请依次排查:

  1. 检查网络/代理:如果 CAMB 服务需要科学上网,请在主界面“网络代理”栏填写正确代理,格式如 http://127.0.0.1:7890;如果不需要代理,请清空代理框后重试。无效代理会导致所有请求失败。
  2. 降低请求压力:在“菜单 → 工具 → 高级选项 → 字幕配音调整”中适当增加“配音后暂停秒”,如设为 3-10 秒,避免短时间高频请求。
  3. 重试任务:如果只是临时超时,直接重新执行该任务即可;若“清理已生成”未勾选,软件会复用已生成缓存。
  4. 更换配音渠道:如果持续报错,建议先改用 Edge-TTS 等渠道,确认是否是该 CAMB 服务端故障。
  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