#6506 :{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/22096/1786

103.81.**3 Posted at: 3 hours ago

:
{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/22096/1786211826.2928445-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 服务器返回配音音频时,超过了网络请求的最长等待时间。常见原因包括网络不稳定、代理不可用、CAMB 服务端响应过慢或触发限流。

解决方法:

  1. 检查网络连接,若使用了代理请确认代理格式正确且可用(http://127.0.0.1:端口号socks5://127.0.0.1:端口号),不需要代理时请清空代理设置。
  2. 适当降低请求频率:进入 菜单 → 工具 → 高级选项 → 字幕配音调整,增大 配音后暂停秒,或将 CAMB 相关并发数调低。
  3. 如果 CAMB 服务经常超时,可先改用 Edge-TTS(免费) 等其他配音渠道完成当前任务。
  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