from modelscope.pipelines import pipeline from modelscope.utils.constant import Tasks
p = pipeline('voice-activity-detection', 'damo/speech_fsmn_vad_zh-cn-16k-common-pytorch')
p('http://www.modelscope.cn/api/v1/models/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch/repo?Revision=master\u0026FilePath=example/vad_example.wav',)
保错信息: /opt/conda/lib/python3.7/site-packages/modelscope/pipelines/audio/voice_activity_detection_pipeline.py in run_inference(self, cmd) 219 raw_inputs=cmd['raw_inputs'], 220 output_dir_v2=cmd['output_dir'], --> 221 param_dict=cmd['param_dict']) 222 else: 223 raise ValueError('model type is mismatching')
TypeError: 'NoneType' object is not callable