#1845 BrokenPipeError: [Errno 32] Broken pipe

198.98* Posted at: 6 hours ago 👁6

网络连接失败:
Traceback (most recent call last):
File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/util/ListenVoice.py", line 18, in run

tts.run(

File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/__init__.py", line 279, in run

EdgeTTS(**kwargs).run()

File "", line 14, in init
File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/_edgetts.py", line 29, in post_init

super().__post_init__()

File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/_base.py", line 65, in post_init

super().__post_init__()

File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/configure/_base.py", line 24, in post_init

print(f'{self.proxy_str=},{self.uuid=}')

BrokenPipeError: [Errno 32] Broken pipe


=
system:macOS-15.7.2-arm64-arm-64bit
version:v3.86
frozen:False
language:zh
root_dir:/Volumes/Eric-ios/Applications/pyvideotrans
Python: 3.10.17 (main, Apr 9 2025, 03:47:39) [Clang 20.1.0 ]

1 Replies

根据错误日志,问题发生在初始化 Edge-TTS 时,具体是 __post_init__ 方法中打印代理信息时出现了 BrokenPipeError。这通常与网络连接不稳定或代理设置有关。

请按以下步骤排查:

  1. 检查网络连接:确保您的 Mac 网络通畅,可以正常访问互联网。
  2. 检查代理设置

    • 如果您没有使用代理,请确保主界面第5行的“网络代理”输入框是空的
    • 如果您需要使用代理,请确认代理地址和端口(例如 http://127.0.0.1:7860)填写正确且代理服务正在运行。
  3. 临时解决方案:尝试暂时不使用 Edge-TTS,改用其他配音渠道(如 Azure TTS 或 OpenAI TTS)进行测试,以判断是否为 Edge-TTS 服务端的临时问题。
  4. 查看完整日志:如果问题持续存在,请提供 pyvideotrans 目录下 logs 文件夹中最新日志文件的完整内容,以便进一步分析。
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.

Donate: https://ko-fi.com/jianchang512

Trending Questions