Update README.md
Browse files
README.md
CHANGED
|
@@ -130,4 +130,23 @@ python wenet/bin/recognize.py \
|
|
| 130 |
--reverse_weight 0.0 \
|
| 131 |
--result_dir $test_result_dir \
|
| 132 |
--decoding_chunk_size -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
```
|
|
|
|
| 130 |
--reverse_weight 0.0 \
|
| 131 |
--result_dir $test_result_dir \
|
| 132 |
--decoding_chunk_size -1
|
| 133 |
+
```
|
| 134 |
+
### SenseVoice_Small_Yue
|
| 135 |
+
```
|
| 136 |
+
from funasr import AutoModel
|
| 137 |
+
from funasr.utils.postprocess_utils import rich_transcription_postprocess
|
| 138 |
+
|
| 139 |
+
model_dir = "sensevoice_small_yue"
|
| 140 |
+
|
| 141 |
+
model = AutoModel(
|
| 142 |
+
model=model_path,
|
| 143 |
+
device="cuda:0",
|
| 144 |
+
)
|
| 145 |
+
res = model.generate(
|
| 146 |
+
wav_path,
|
| 147 |
+
cache={},
|
| 148 |
+
language="yue",
|
| 149 |
+
use_itn=True,
|
| 150 |
+
batch_size=64,
|
| 151 |
+
)
|
| 152 |
```
|