-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
基于FunASR/egs进行模型训练,得到一个适用于小语种ASR的paraformer模型,然后将此模型训练得到的的模型文件和config文件替换掉damo/speech_paraformer_asr_nat-zh-cn-16k-aishell1-vocab4234-pytorch 下的模型文件与config文件,接下来使用如下代码进行推理:
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
inference_pipeline = pipeline(
task=Tasks.auto_speech_recognition,
model='models_from_modelscope/damo1/speech_paraformer_asr_nat-zh-cn-16k-aishell1-vocab4234-pytorch',
)
rec_result = inference_pipeline(audio_in='https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav')
print(rec_result)
返回结果为空值!!!
Metadata
Metadata
Assignees
Labels
No labels


