#889 KeyError: 'listen_text_中文简'

192.9* Posted at: 12 hours ago 👁5

Traceback (most recent call last):

File "videotrans\winform\fn_peiyin.py", line 247, in listen_voice_fun

KeyError: 'listen_text_中文简'

=====

Windows-10-10.0.19044-SP0

version:v3.81

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是由于在语音合成(配音)功能中,软件无法找到对应的界面文本配置导致的。具体来说,错误 KeyError: 'listen_text_中文简' 表示软件在尝试访问一个名为 'listen_text_中文简' 的文本键时,该键在当前的界面语言配置中不存在。

问题分析:

  • 您使用的是 Windows 10 系统,pyVideoTrans 版本 v3.81(预打包版本)。
  • 错误发生在 fn_peiyin.py 文件中,这是软件中负责"批量为SRT字幕或文本进行语音合成"的独立功能模块。
  • 错误可能与界面语言设置(当前为中文)或软件配置文件损坏有关。

解决方案:

1. 重启软件:首先尝试完全关闭 pyVideoTrans 并重新启动,看是否能自动修复。

2. 重置配置文件:如果问题依旧,请尝试删除软件目录下的配置文件 videotrans/params.jsonvideotrans/cfg.json(删除前可先备份),然后重新启动软件。这将重置所有设置到默认状态。

3. 检查软件完整性:如果是从官网下载的预打包版本,确保下载过程中文件没有损坏。必要时重新下载最新版本。

4. 切换界面语言:在软件设置中尝试将界面语言切换到英文,然后再切换回中文,看是否能修复语言配置问题。

如果以上方法都不能解决问题,请提供软件目录下 logs 文件夹中对应日期的日志文件(如 20241219.log),以便进一步分析。

您也可以查阅官方文档 https://pyvideotrans.com 获取更多帮助。

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