From d80ac2fd2df4e7fb8a28acfa512bb11472b5cc99 Mon Sep 17 00:00:00 2001 From: liugz18 <57401541+liugz18@users.noreply.github.com> Date: 星期四, 18 七月 2024 21:34:55 +0800 Subject: [PATCH] Rename 'res' in line 514 to avoid with naming conflict with line 365 --- README.md | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 3a99b99..4374a2f 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,14 @@ 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). + #### Paraformer ```python from funasr import AutoModel -- Gitblit v1.9.1