#2263 2025/12/24 18:42:48 [ERR] Traceback (most recent call last): File "C:\videocreate\index-tts-2.0\python\webui.py", line 8

111.58* Posted at: 1 day ago 👁16

2025/12/24 18:42:48 [ERR] Traceback (most recent call last): File "C:\videocreate\index-tts-2.0\python\webui.py", line 84, in tts = IndexTTS2(model_dir=cmd_args.model_dir, File "C:\videocreate\index-tts-2.0\python\indextts\infer_v2.py", line 176, in init self.normalizer.load() File "C:\videocreate\index-tts-2.0\python\indextts\utils\front.py", line 122, in load from wetext import Normalizer File "C:\videocreate\index-tts-2.0\python\build_venv\lib\site-packages\wetext\__init__.py", line 15, in from wetext.utils import ( File "C:\videocreate\index-tts-2.0\python\build_venv\lib\site-packages\wetext\utils.py", line 18, in from wetext.constants import FSTS File "C:\videocreate\index-tts-2.0\python\build_venv\lib\site-packages\wetext\constants.py", line 17, in from kaldifst import TextNormalizer as normalizer File "C:\videocreate\index-tts-2.0\python\build_venv\lib\site-packages\kaldifst\__init__.py", line 1, in from _kaldifst import ( ImportError: DLL load failed while importing _kaldifst: 动态链接库(DLL)初始化例程失败。

1 Replies

这个错误是您在独立运行 Index-TTS2 时遇到的,与 pyVideoTrans 软件本身无关。错误核心是 kaldifst 库的 DLL 初始化失败,通常由以下原因导致:

  1. 环境冲突:您的 Python 环境中可能安装了多个版本的 kaldifst 或相关依赖(如 openfst),导致冲突。
  2. 依赖缺失kaldifst 需要特定的底层 C++ 运行时库(如 VC++ Redistributable)或 openfst 库,您的系统可能缺少。
  3. Python 版本不兼容:Index-TTS2 整合包可能针对特定 Python 版本(如 3.10)编译,而您当前环境版本不匹配。

解决方法:

方案一(推荐):使用 pyVideoTrans 内置的 Index-TTS2 整合包
pyVideoTrans 已内置了配置好的 Index-TTS2 整合包,无需您手动部署环境。

  1. 在 pyVideoTrans 主界面,选择 配音渠道Index-TTS2
  2. 首次使用会自动下载并配置所需环境。
  3. 如果下载失败,请从 Index-TTS2 整合包win版 手动下载,并按说明放置到指定目录。

方案二:修复您当前的独立 Index-TTS2 环境
如果您必须独立运行 Index-TTS2:

  1. 检查 Python 版本:确保您使用的 Python 版本与 Index-TTS2 整合包要求一致(通常是 3.10)。
  2. 安装 VC++ 运行库:从微软官网下载并安装最新版 Visual C++ Redistributable(包含 x86 和 x64)。
  3. 创建纯净虚拟环境

    # 在 Index-TTS2 目录外创建新环境
    python -m venv tts_env
    tts_env\Scripts\activate
    # 重新安装依赖(参考整合包内的 requirements.txt)
    pip install -r requirements.txt
  4. 重新启动:激活新环境后,再次运行 webui.py

如果问题依旧,建议直接使用方案一,通过 pyVideoTrans 调用 Index-TTS2,避免复杂的环境配置。

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