FunASR
FunASR copied to clipboard
Questions :Does FunASR's real-time online mode support hotwords
We use the below command to run the FunASR sever . when we use the test-demo to test the online mode , hotwords cannot be recognized, so the question is if FunASR's real-time online mode support hotwords
docker run -d \
--name funasr-online-server-zqy \
--gpus all \
-p 10095:10095 \
-v /path/to/your/models:/workspace/models \
-v /path/to/your/hotwords.txt:/workspace/models/hotwords.txt \
-e LOG_LEVEL=DEBUG \
nb/funasr-online-server:v1 \
/bin/bash -c "
cd /workspace/FunASR/runtime && \
LOG_LEVEL=DEBUG ./run_server_2pass.sh \
--download-model-dir /workspace/models \
--vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \
--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 \
--punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
--lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst \
--itn-dir thuduj12/fst_itn_zh \
--hotword /workspace/models/hotwords.txt \
--log-level DEBUG \
--verbose 1
"
Here is the test result:
environment :
- OS (e.g., Linux):Linux version 5.4.0-125-generic (buildd@lcy02-amd64-083) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022
- CUDA/cuDNN version : cuda-12.2
- Docker version: Docker version 28.1.1, build 4eba377,funasr-runtime-sdk-online-cpu-0.1.13
{
"chunk_size": [5, 10, 5],
"wav_name": "test",
"is_speaking": True,
"chunk_interval": 10,
"itn": False,
"mode": "online",
"hotwords": """{"题型": 50,"提型": -20}"""
}