-
|
Now streaming paraformer supports VAD, Punctuation in pipeline(and python websocket runtime), but it seems Timestamp/Hotwords/NN-LM is not combined yet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Short answer: the current Python Current capability boundary
This distinction matters because unknown inference kwargs are accepted by the Python API but are not evidence that the feature is implemented. The streaming inference method currently constructs only I also verified this with a real CPU run using FunASR 1.3.14, Torch 2.11.0, So Supported deploymentUse the official 2-pass server and configure the offline branch with the model/features you need: bash run_server_2pass.sh \
--model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx \
--online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx \
--vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \
--punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
--lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst \
--hotword ../../hotwords.txtThe runtime guide documents the same server options and model choices (server example, model and hotword options). It specifically describes N-gram LM decoding and WFST hotwords for Connect with If a neural LM is mandatory, there is no current FunASR flag for it in streaming Paraformer. It requires a custom stateful LM scorer integrated into beam search, or sentence-final N-best rescoring outside the streaming decoder. The latter preserves streaming partials but only changes the final result. |
Beta Was this translation helpful? Give feedback.
Short answer: the current Python
ParaformerStreamingpath cannot combine timestamp prediction, contextual hotwords, and NN-LM shallow fusion by passing inference kwargs. For a supported streaming deployment, use the C++/ONNX 2-pass runtime: return low-latency online partials, then apply timestamps, hotword biasing, and N-gram/WFST decoding to the sentence-final offline result.Current capability boundary
paraformer-zh-streamingfunasr-wss-server-2pass2pass-onlinetext2pass-offline, with a timestamp AM2pass-offline; server/client WFST hotwords or a contextual AM