From 1af68ba6ffc21d4dc3bd5f01cda656def97e361c Mon Sep 17 00:00:00 2001 From: Nixon <2465004358@qq.com> Date: 星期六, 14 九月 2024 10:13:23 +0800 Subject: [PATCH] fix bug, 1 fix cuda oom, 2 fix choose a window size 400 that is [2, 0] (#2075) --- README.md | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a99b99..487b7e7 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,15 @@ text = rich_transcription_postprocess(res[0]["text"]) print(text) ``` +Parameter Description: +- `model_dir`: The name of the model, or the path to the model on the local disk. +- `vad_model`: This indicates the activation of VAD (Voice Activity Detection). The purpose of VAD is to split long audio into shorter clips. In this case, the inference time includes both VAD and SenseVoice total consumption, and represents the end-to-end latency. If you wish to test the SenseVoice model's inference time separately, the VAD model can be disabled. +- `vad_kwargs`: Specifies the configurations for the VAD model. `max_single_segment_time`: denotes the maximum duration for audio segmentation by the `vad_model`, with the unit being milliseconds (ms). +- `use_itn`: Whether the output result includes punctuation and inverse text normalization. +- `batch_size_s`: Indicates the use of dynamic batching, where the total duration of audio in the batch is measured in seconds (s). +- `merge_vad`: Whether to merge short audio fragments segmented by the VAD model, with the merged length being `merge_length_s`, in seconds (s). +- `ban_emo_unk`: Whether to ban the output of the `emo_unk` token. + #### Paraformer ```python from funasr import AutoModel @@ -323,11 +332,11 @@ ## Community Communication If you encounter problems in use, you can directly raise Issues on the github page. -You can also scan the following DingTalk group or WeChat group QR code to join the community group for communication and discussion. +You can also scan the following DingTalk group to join the community group for communication and discussion. -| DingTalk group | WeChat group | -|:-------------------------------------------------------------------:|:-----------------------------------------------------:| -| <div align="left"><img src="docs/images/dingding.png" width="250"/> | <img src="docs/images/wechat.png" width="215"/></div> | +| DingTalk group | +|:-------------------------------------------------------------------:| +| <div align="left"><img src="docs/images/dingding.png" width="250"/> | ## Contributors -- Gitblit v1.9.1