From f2a68d0bc811e9fcf301999edb8d032463097ae8 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 21 十二月 2023 21:27:26 +0800
Subject: [PATCH] funasr1.0
---
README_zh.md | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/README_zh.md b/README_zh.md
index e4b3658..5007da1 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -81,11 +81,13 @@
### 闈炲疄鏃惰闊宠瘑鍒�
```python
-from funasr import infer
+from funasr import AutoModel
-p = infer(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc", model_hub="ms")
+model = AutoModel(model="paraformer-zh")
+# for the long duration wav, you could add vad model
+# model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad")
-res = p("asr_example_zh.wav", batch_size_token=5000)
+res = model(input="asr_example_zh.wav", batch_size=64)
print(res)
```
娉細`model_hub`锛氳〃绀烘ā鍨嬩粨搴擄紝`ms`涓洪�夋嫨modelscope涓嬭浇锛宍hf`涓洪�夋嫨huggingface涓嬭浇銆�
--
Gitblit v1.9.1