该模型当前使用的是默认介绍模版,处于“预发布”阶段,页面仅限所有者可见。
请根据模型贡献文档说明,及时完善模型卡片内容。ModelScope平台将在模型卡片完善后展示。谢谢您的理解。
示例代码
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
if __name__ == '__main__':
inference_pipline = pipeline(task=Tasks.auto_speech_recognition, model='wenet/librispeech',model_revision='v1.0.0')
rec_result = inference_pipline(audio_in='https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_en.wav')
print(rec_result)
# rec_result: {'text': 'he tried to think how it could be'}
Clone with HTTP
git clone https://www.modelscope.cn/wenet/librispeech.git