From 19645da9e998581e6329d679bae968d0c45d1895 Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期一, 15 一月 2024 20:46:40 +0800
Subject: [PATCH] update readme
---
README.md | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 05f6364..eff0593 100644
--- a/README.md
+++ b/README.md
@@ -97,7 +97,7 @@
punc_model="ct-punc-c", punc_model_revision="v2.0.2", \
spk_model="cam++", spk_model_revision="v2.0.2")
res = model(input=f"{model.model_path}/example/asr_example.wav",
- batch_size=16,
+ batch_size=64,
hotword='榄旀惌')
print(res)
```
@@ -135,7 +135,6 @@
from funasr import AutoModel
model = AutoModel(model="fsmn-vad", model_revision="v2.0.2")
-
wav_file = f"{model.model_path}/example/asr_example.wav"
res = model(input=wav_file)
print(res)
@@ -167,7 +166,6 @@
from funasr import AutoModel
model = AutoModel(model="ct-punc", model_revision="v2.0.2")
-
res = model(input="閭d粖澶╃殑浼氬氨鍒拌繖閲屽惂 happy new year 鏄庡勾瑙�")
print(res)
```
@@ -176,9 +174,8 @@
from funasr import AutoModel
model = AutoModel(model="fa-zh", model_revision="v2.0.2")
-
wav_file = f"{model.model_path}/example/asr_example.wav"
-text_file = f"{model.model_path}/example/asr_example.wav"
+text_file = f"{model.model_path}/example/text.txt"
res = model(input=(wav_file, text_file), data_type=("sound", "text"))
print(res)
```
--
Gitblit v1.9.1