找回密码
 立即注册
搜索
查看: 33|回复: 0

funasr实时语音识别

[复制链接]

52

主题

0

回帖

228

积分

管理员

积分
228
发表于 2025-8-17 19:54:45 | 显示全部楼层 |阅读模式
docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.13
mkdir -p ./funasr-runtime-resources/models
docker run -p 10096:10095 -it --privileged=true -v $PWD/funasr-runtime-resources/models:/workspace/models registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.13

cd FunASR/runtime
nohup bash 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.txt 2>&1 &

下载客户端测试工具目录samples
wget https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/sample/funasr_samples.tar.gz

python客户端用法
python3 funasr_wss_client.py --host "127.0.0.1" --port 10096 --mode 2pass

html客户端用法
打开html/static/index.html

官方参考文档:
1.https://github.com/modelscope/FunASR/blob/main/runtime/docs/SDK_advanced_guide_online_zh.md
2.https://github.com/modelscope/FunASR
3.https://www.funasr.com/
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

SKYPIEA

GMT+8, 2025-9-8 10:03 , Processed in 0.048024 second(s), 19 queries .

快速回复 返回顶部 返回列表