FunASR社区软件包windows版本

我要开发同款
匿名用户2024年07月31日
98阅读
所属分类ai、其他、Alibaba、Paraformer、FunASR
开源地址https://modelscope.cn/models/iic/funasr-runtime-win-cpu-x64
授权协议Apache License 2.0

作品详情

FunASR社区软件包windows版本

最新动态

2024/05/15: funasr社区软件包windows 4.5版本发布,更新中文离线文件转写、英文离线文件转写、中文实时听写服务:
    适配FunASR 1.0模型结构(windows 4.5版本中,仅支持v2.*.* 版本语音端点检测、声学、标点模型);
2024/03/05: funasr社区软件包windows 4.4版本发布,更新中文离线文件转写、英文离线文件转写、中文实时听写服务:
    中文离线文件转写服务、英文离线文件转写服务,优化vad数据处理方式,大幅降低峰值内存占用,内存泄漏优化;
    中文实时语音听写服务发布,客户端优化;
2024/01/09: funasr社区软件包windows 2.0版本发布,更新中文离线文件转写、英文离线文件转写、中文实时听写服务:
    中文离线文件转写(新增支持8k模型、优化时间戳不匹配问题及增加句子级别时间戳、优化英文单词fst热词效果,同时修复已知的crash问题及内存泄漏问题);
    中文实时听写服务(2pass-offline模式支持Ngram语言模型解码、wfst热词,同时修复已知的crash问题及内存泄漏问题);
    英文离线文件转写(修复已知的crash问题及内存泄漏问题);
2023/12/04: funasr社区软件包windows 1.0版本发布,支持中文离线文件转写、英文离线文件转写、中文实时听写服务

0、环境安装

1. VS环境安装:

如果您没有Visual Studio 2022 c++运行环境,双击 VC_redist.x64(2022).exe 安装 Visual Studio 2022环境下编译的C++程序运行所需要的库;

2. git安装:

1.1 下载地址:

官网下载 (如遇网络问题,大陆用户可以使用下述地址:oss镜像)

1.2 如何进入git bash命令行可参考:

点击开始菜单,找到Git文件夹;在Git文件夹中,点击“Git Bash”

1.3 Git Bash安装lfs:

git lfs install

1、FunASR中文离线文件转写服务部署

1. Git Bash运行下述命令,下载相关模型至:

D:/funasr-runtime-resources/models

下载指令:

 mkdir -p D:/funasr-runtime-resources/models && cd D:/funasr-runtime-resources/models;

 git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_ngram_lm_zh-cn-ai-wesp-fst.git;

 git clone https://www.modelscope.cn/damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx.git;

 git clone https://www.modelscope.cn/thuduj12/fst_itn_zh.git

 # 如果您想使用8k模型,请下载8k模型:
 git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-8k-common-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_paraformer_asr_nat-zh-cn-8k-common-vocab8358-tensorflow1-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_ngram_lm_zh-cn-ai-wesp-fst-token8358.git;

 git clone https://www.modelscope.cn/damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx.git;

 git clone https://www.modelscope.cn/thuduj12/fst_itn_zh.git

2. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动服务端:

./funasr-wss-server.exe  --vad-dir D:/funasr-runtime-resources/models/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir D:/funasr-runtime-resources/models/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx --lm-dir D:/funasr-runtime-resources/models/speech_ngram_lm_zh-cn-ai-wesp-fst  --punc-dir D:/funasr-runtime-resources/models/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --itn-dir D:/funasr-runtime-resources/models/fst_itn_zh --certfile ssl_key/server.crt --keyfile ssl_key/server.key

# 如果您想使用8k模型:
./funasr-wss-server.exe  --vad-dir D:/funasr-runtime-resources/models/speech_fsmn_vad_zh-cn-8k-common-onnx --model-dir D:/funasr-runtime-resources/models/speech_paraformer_asr_nat-zh-cn-8k-common-vocab8358-tensorflow1-onnx --lm-dir D:/funasr-runtime-resources/models/speech_ngram_lm_zh-cn-ai-wesp-fst-token8358  --punc-dir D:/funasr-runtime-resources/models/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --itn-dir D:/funasr-runtime-resources/models/fst_itn_zh --certfile ssl_key/server.crt --keyfile ssl_key/server.key

3. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动客户端:

./funasr-wss-client.exe --server-ip 127.0.0.1 --port 10095 --wav-path  asr_example_zh.wav

4. 详情及客户端用法可参考:

完整示例与用法

2、FunASR实时语音听写服务部署

1. Git Bash运行下述命令,下载相关模型至:

D:/funasr-runtime-resources/models

下载指令:

 mkdir -p D:/funasr-runtime-resources/models && cd D:/funasr-runtime-resources/models;

 git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_ngram_lm_zh-cn-ai-wesp-fst.git;

 git clone https://www.modelscope.cn/damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx.git;

 git clone https://www.modelscope.cn/thuduj12/fst_itn_zh.git

2. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动服务端:

./funasr-wss-server-2pass.exe --vad-dir D:/funasr-runtime-resources/models/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir  D:/funasr-runtime-resources/models/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-onnx --online-model-dir D:/funasr-runtime-resources/models/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx  --lm-dir D:/funasr-runtime-resources/models/speech_ngram_lm_zh-cn-ai-wesp-fst  --punc-dir D:/funasr-runtime-resources/models/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx --itn-dir D:/funasr-runtime-resources/models/fst_itn_zh --certfile ssl_key/server.crt --keyfile ssl_key/server.key

3. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动客户端:

./funasr-wss-client-2pass.exe --server-ip 127.0.0.1 --port 10095 --wav-path  asr_example_zh.wav

4. 详情及客户端用法可参考:

完整示例与用法

3、FunASR英文离线文件转写服务部署

1. Git Bash运行下述命令,下载相关模型至:

D:/funasr-runtime-resources/models

下载指令:

 mkdir -p D:/funasr-runtime-resources/models && cd D:/funasr-runtime-resources/models;

 git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-onnx.git;

 git clone https://www.modelscope.cn/damo/speech_paraformer-large_asr_nat-en-16k-common-vocab10020-onnx.git;

 git clone https://www.modelscope.cn/damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx.git

2. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动服务端:

./funasr-wss-server.exe   --vad-dir D:/funasr-runtime-resources/models/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir D:/funasr-runtime-resources/models/speech_paraformer-large_asr_nat-en-16k-common-vocab10020-onnx  --punc-dir D:/funasr-runtime-resources/models/punc_ct-transformer_cn-en-common-vocab471067-large-onnx  --certfile ssl_key/server.crt --keyfile ssl_key/server.key

3. Git Bash在项目目录(funasr-runtime-win-cpu-x64-v0.2.0)启动客户端:

./funasr-wss-client-2pass.exe --server-ip 127.0.0.1 --port 10095 --wav-path  asr_example_zh.wav

4. 详情及客户端用法可参考:

完整示例与用法

Clone with HTTP

 git clone https://www.modelscope.cn/damo/funasr-runtime-win-cpu-x64.git
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论