#6284 :{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/6872/17857

2405:4800* Posted at: 6 hours ago

:
{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/6872/1785766504.4642963-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 配音服务时发生读取超时(ReadTimeout)导致的。CAMB 属于在线云 TTS 渠道,需要与远程服务器建立流式连接,超时通常由网络不稳定、代理配置不当或 CAMB 服务端响应过慢引起。

排查与解决步骤

  1. 检查网络与代理

    • 如果当前填写了 网络代理,请确认代理地址可用,例如 http://127.0.0.1:7890;代理失效会直接导致超时。
    • 如果不需要代理,请清空主界面或 菜单 → 翻译设置 里的代理框,再重试。
  2. 确认 CAMB 服务与密钥

    • 确认 CAMB 的 API Key 有效且账户余额充足。
    • 可先在浏览器或 Postman 中直接调用 CAMB 接口测试连通性;若接口本身不可达,说明服务端或本地网络存在问题。
  3. 降低请求压力

    • 菜单 → 工具 → 高级选项 → 字幕配音调整 中,将 并发配音线程数 设为 1配音后暂停秒 设为 3-5,避免并发触发限流或超时。
  4. 更换配音渠道

    • 如果 CAMB 服务持续超时,可暂时改用 Edge-TTS(免费)或其他内置配音渠道,降低对单一在线服务的依赖。

请查阅相关文档:

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