#3907 ImportError: cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (D:\videotrans\_in

103.90* Posted at: 2 hours ago 👁6

网络连接失败:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 399, in run
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\tts\_vits.py", line 7, in
File "pyimod02_importers.py", line 457, in exec_module
File "sherpa_onnx\__init__.py", line 85, in

from .offline_recognizer import OfflineRecognizer

File "pyimod02_importers.py", line 457, in exec_module
File "sherpa_onnx\offline_recognizer.py", line 6, in

from sherpa_onnx.lib._sherpa_onnx import (

ImportError: cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (D:\videotrans\_internal\sherpa_onnx\lib\_sherpa_onnx.cp310-win_amd64.pyd)


=
system:Windows-10-10.0.22621-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

这是由于软件打包时依赖库版本不匹配或文件损坏导致的。具体错误是 sherpa_onnx 库中的 OfflineFireRedAsrCtcModelConfig 模块导入失败。

解决方案:

  1. 重新下载完整软件包:请前往官网下载最新的 完整软件包(而非升级补丁包)。
  2. 全新解压:将下载的完整包解压到一个新的、路径中不含中文或特殊字符的目录(例如 D:\pyVideoTrans)。
  3. 直接运行:进入新解压的目录,双击 sp.exe 运行。不要将旧目录中的任何文件或配置覆盖到新目录。

如果问题依旧,可能是您的操作系统缺少必要的运行库。请尝试安装 Microsoft Visual C++ Redistributable 后重启软件。

请查阅相关文档:

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

Similar issues already exist