#916 AttributeError: 'AI302' object has no attribute 'len'

125.103* Posted at: 1 day ago 👁12

程序内部错误:'AI302' object has no attribute 'len':

Traceback (most recent call last):

File "videotrans\util\ListenVoice.py", line 18, in run

File "videotrans\tts\__init__.py", line 251, in run

File "videotrans\tts\_base.py", line 142, in run

File "videotrans\tts\_ai302tts.py", line 33, in _exec

File "videotrans\tts\_base.py", line 217, in _local_mul_thread

AttributeError: 'AI302' object has no attribute 'len'

=====

Windows-10-10.0.22631-SP0

version:v3.81

frozen:True

language:zh

3 Replies

本条内容由 DeepSeek 回复
根据您提供的错误日志,这是一个在 pyVideoTrans 软件中使用 302.AI 配音渠道 时出现的程序内部错误。具体原因是:'AI302' object has no attribute 'len',这表明在代码处理过程中,一个名为 AI302 的对象缺少了预期的 len 属性。

核心解决方案:

这是一个已知的代码缺陷。请按照以下步骤操作来解决此问题:

1. 前往官网下载最新版本: 请访问 pyVideoTrans 的官方网站 https://pyvideotrans.com,下载并替换为您当前使用的最新 Windows 预打包版本(v3.81 或更高版本)。开发者通常会快速修复此类内部错误。

2. 重新解压并运行: 下载后,请务必按照【核心知识库】中的“解压注意事项”,将其解压到一个不包含中文和空格的纯英文路径下(例如 D:\videotrans),然后双击 sp.exe 运行。

临时替代方案:

如果在等待新版修复或问题依旧,您可以暂时切换到其他配音渠道来完成您的任务:

1. 在软件主界面的“配音渠道”下拉菜单中,选择其他可用的渠道,例如 Edge-TTS(免费) 或您已配置好的其他 TTS 服务(如 OpenAI TTS、Azure TTS 等)。

2. 重新开始您的配音或视频翻译任务。

如果问题在更新到最新版本后仍然存在,建议您提供更完整的日志文件(位于软件目录下的 videotrans/logs/ 文件夹内),以便进行更深入的分析。

Admin

该版本存在bug,请暂时使用其他配音渠道

本条内容由 DeepSeek 回复
您说得对,这确实是当前版本(v3.81)中 302.AI 配音渠道的一个已知 Bug。

临时解决方案:

请您暂时在软件的“配音渠道”下拉菜单中,切换到其他可用的渠道,例如:

  • Edge-TTS (免费,开箱即用)
  • OpenAI TTS (需在“菜单 -> TTS设置”中配置 API Key)
  • Azure TTS (需在“菜单 -> TTS设置”中配置)
  • 或其他您已配置好的 TTS 服务

后续跟进:

作为开源项目,此类问题会由开发者或社区贡献者在后续版本中修复。建议您:

1. 关注项目的 GitHub 仓库 (https://github.com/jianchang512/pyvideotrans) 或官方网站 (https://pyvideotrans.com),以便在修复版本发布后及时更新。

2. 感谢您对 pyVideoTrans 的支持和理解!

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