#1863 RuntimeError: Edge TTS 不可用,请改用 Azure TTS 或 302/Minimax/Kokoro 并在设置中填写对应密钥或地址

198.98* Posted at: 3 hours ago 👁8

运行时错误:Edge TTS 不可用,请改用 Azure TTS 或 302/Minimax/Kokoro 并在设置中填写对应密钥或地址:
Traceback (most recent call last):
File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/__init__.py", line 262, in run

EdgeTTS(**kwargs).run()

File "", line 14, in init
File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/_edgetts.py", line 30, 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=}')

OSError: [Errno 5] Input/output error

During handling of the above exception, another exception occurred:

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 284, in run

raise RuntimeError('Edge TTS 不可用,请改用 Azure TTS 或 302/Minimax/Kokoro 并在设置中填写对应密钥或地址')

RuntimeError: Edge TTS 不可用,请改用 Azure TTS 或 302/Minimax/Kokoro 并在设置中填写对应密钥或地址


=
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

这个错误的核心原因是 OSError: [Errno 5] Input/output error,它发生在尝试打印日志时,表明软件无法正常写入控制台或日志文件。这通常与软件运行路径的权限或磁盘状态有关。根据您的路径 /Volumes/Eric-ios/Applications/pyvideotrans,问题很可能出在外部硬盘上。

请按以下步骤排查:

  1. 检查磁盘状态

    • 确保外置硬盘 /Volumes/Eric-ios 已正确连接且没有读写错误。
    • 尝试在 Finder 中向该硬盘复制、粘贴一个文件,确认读写正常。
  2. 更改软件运行位置(最可能解决问题)

    • 将整个 pyvideotrans 文件夹从外置硬盘移动到 Mac 的本地硬盘上,例如 ~/Downloads//Applications/ 目录下。
    • 确保新路径不包含任何中文字符或空格
    • 从新位置重新启动软件。
  3. 检查并修复权限

    • 打开终端(Terminal)。
    • 输入以下命令,为软件目录赋予当前用户完全的读写权限(将路径替换为您的实际路径):

      sudo chmod -R 755 /Volumes/Eric-ios/Applications/pyvideotrans
    • 您可能需要输入管理员密码。
  4. 如果问题依旧,请提供完整日志

    • 在软件菜单栏选择 “帮助” -> “打开日志目录”
    • 将目录下最新的 .log 文件内容复制提供,以便进一步分析。

临时解决方案:在排查上述问题的同时,您可以按照错误提示,在“翻译设置”中切换到其他可用的 TTS 服务,如 Azure TTS(需填写密钥)或 302.AI、Minimax 等。

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