ModuleNotFoundError: AutomaticSpeechRecognitionPipeline: No module named ‘funasr‘

ModuleNotFoundError: AutomaticSpeechRecognitionPipeline: No module named ‘funasr’

I. Introduction

Problems encountered when running Alibaba Voice AI model for speech recognition: ModuleNotFoundError: No module named ‘funasr’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “test_asr.py”, line 60, in main(mother_path); File “test_asr.py”, line 35, in main model=‘damo/speech_paraformer_asr_nat-zh-cn-16k-common-vocab8358-tensorflow1’) File “/home/huangzhiqiang/software/anaconda3/envs/kantts/lib/python3.7/site-packages/modelscope/pipelines/builder.py”, line 140, in pipeline return build_pipeline(cfg, task_name=task) File “/home/huangzhiqiang/software/anaconda3/envs/kantts/lib/python3.7/site-packages/modelscope/pipelines/builder.py”, line 57, in build_pipeline cfg, PIPELINES, group_key=task_name, default_args=default_args) File “/home/huangzhiqiang/software/anaconda3/envs/kantts/lib/python3.7/site-packages/modelscope/utils/registry.py”, line 215, in build_from_cfg raise type(e)(f’{obj_cls.name}: {e}') ModuleNotFoundError: AutomaticSpeechRecognitionPipeline: No module named ‘funasr’
Insert image description here

2. Solution

pip install funasr --upgrade -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html  

Reinstall a wave of funasr into the modelscope library
I solved it like this.
If you can’t solve the problem, try this: Encountered a problem with speech recognition when running the Alibaba Voice AI model

おすすめ

転載: blog.csdn.net/qq_51116518/article/details/133616237