#3504 选择Index TTS时 AttributeError: 'NoneType' object has no attribute 'keys'

103.129* Posted at: 3 hours ago 👁6

Traceback (most recent call last):
File "videotrans\mainwin\_actions.py", line 244, in tts_type_change
AttributeError: 'NoneType' object has no attribute 'keys'


=
system:Windows-10-10.0.26200-SP0
version:v3.95
frozen:True
language:zh
root_dir:J:/pyvideotrans

1 Replies

这是由于 pyVideoTrans v3.95 版本中 Index TTS 渠道的配置读取逻辑存在缺陷导致的。

解决方案:

  1. 升级软件:这是最直接的解决方法。请将 pyVideoTrans 升级到最新版本 v3.97。根据知识库,v3.97 版本已修复了多个配音渠道的已知问题。
  2. 手动配置:如果暂时无法升级,可以尝试手动修复配置文件。

    • 关闭 pyVideoTrans。
    • 打开软件根目录下的 config.json 文件。
    • 找到 tts 配置部分,确保 index-tts 的配置项存在且结构完整。一个基础的配置示例如下:

      "index-tts": {
          "api_url": "http://127.0.0.1:7860",
          "voice": "default",
          "language": "auto"
      }
    • 保存文件后重新启动软件。

建议:
强烈建议执行第一步,升级到 v3.97 版本,以获得更稳定的体验和已修复的 bug。

请查阅相关文档:

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.

Related resource