Replies: 3 comments 5 replies
-
Notes: For the Paraformer-large-long, the pipeline defaults to combine from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
inference_pipeline = pipeline(
task=Tasks.auto_speech_recognition,
model='damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch',
) It equals to inference_pipeline = pipeline(
task=Tasks.auto_speech_recognition,
model='damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch',
vad_model='damo/speech_fsmn_vad_zh-cn-16k-common-pytorch',
punc_model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',
) If you want to disable the inference_pipeline = pipeline(
task=Tasks.auto_speech_recognition,
model='damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch',
punc_model='',
) |
Beta Was this translation helpful? Give feedback.
-
对于读取本地模型,如 |
Beta Was this translation helpful? Give feedback.
-
长达7分钟的干净语音文件,使用: inference_pipeline = pipeline(
task=Tasks.auto_speech_recognition,
model='damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch',
vad_model='damo/speech_fsmn_vad_zh-cn-16k-common-pytorch',
punc_model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',
) 没有输出time_stamp,这是为什么呢?sentences的输出也是空的。我希望得到时间戳和对应的文本内容(带有标点符号),谢谢。 |
Beta Was this translation helpful? Give feedback.
-
You could combine the
VAD
,ASR
,NNLM
andPUNC
models freely in pipeline. The following is the demo of Paraformer-large.The pipeline which only contains
ASR
model:The pipeline which contains
NNLM
andASR
models:The pipeline which contains
VAD
andASR
models:The pipeline which contains
VAD
,ASR
andPUNC
models:The pipeline which contains
VAD
,ASR
,PUNC
andNNLM
models:Beta Was this translation helpful? Give feedback.
All reactions