Mozilla deepspeech from deepspeech import 模型不起作用

问题描述 投票:0回答:1

我正在尝试使用 mozilla deepspeech 来转录文本,但是在导入模型模块时遇到了问题。 这是我的代码

from deepspeech.model import model
model_file_path='deepspeech-0.9.3-models.pbmm'
lm_file_path='deepspeech-0.9.3-models.scorer'
beam_width=100
lm_alpha=0.93
lm_beta=1.18
model=Model(model_file_path)
model.enableExternalScorer(lm_file_path)

这是错误

ImportError: DLL load failed while importing _impl: The specified module could not be found.

我使用 jupytr 笔记本作为上下文

model mozilla-deepspeech automatic-speech-recognition
1个回答
0
投票

问题是我使用的是 python 版本 3.10,deepspeech 支持 python 版本高达 3.7,因此为了使用 deepspeech,需要将环境中的 python 版本降级到 3.7 及以下

© www.soinside.com 2019 - 2024. All rights reserved.