update README.md
This commit is contained in:
parent
2db91a0891
commit
c597aa1b01
13
README.md
13
README.md
@ -64,6 +64,19 @@ SenseVoice-Small是基于非自回归端到端框架模型,为了指定任务
|
|||||||
|
|
||||||
## 推理
|
## 推理
|
||||||
|
|
||||||
|
### modelscope pipeline推理
|
||||||
|
```python
|
||||||
|
from modelscope.pipelines import pipeline
|
||||||
|
from modelscope.utils.constant import Tasks
|
||||||
|
|
||||||
|
inference_pipeline = pipeline(
|
||||||
|
task=Tasks.auto_speech_recognition,
|
||||||
|
model='iic/SenseVoiceSmall')
|
||||||
|
|
||||||
|
rec_result = inference_pipeline('https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav')
|
||||||
|
print(rec_result)
|
||||||
|
```
|
||||||
|
|
||||||
### 直接推理
|
### 直接推理
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user