---
title: funasr-runtime-win-cpu-x64
canonical_url: "https://www.modelscope.cn/models/damo/funasr-runtime-win-cpu-x64"
md_url: "https://www.modelscope.cn/models/damo/funasr-runtime-win-cpu-x64.md"
repository: damo/funasr-runtime-win-cpu-x64
chinese_name: "FunASR社区软件包windows版本"
last_updated: 2024-05-15
license: "Apache License 2.0"
pipeline_tag: auto-speech-recognition
tasks:
  - auto-speech-recognition
library_name:
  - "其他"
frameworks:
  - "其他"
downloads: 1379
stars: 59
tags:
  - FunASR
  - Paraformer
  - Alibaba
---

# funasr-runtime-win-cpu-x64

> funasr-runtime-win-cpu-x64 - damo 在 ModelScope 开源的模型。FunASR社区软件包windows版本

damo/funasr-runtime-win-cpu-x64 是 ModelScope 魔搭社区上的auto-speech-recognition模型，采用 Apache License 2.0 许可。

- **Repository**: damo/funasr-runtime-win-cpu-x64
- **License**: Apache License 2.0
- **Tasks**: auto-speech-recognition
- **Tags**: FunASR, Paraformer, Alibaba
- **Downloads**: 1379
- **Stars**: 59
- **Last updated**: 2024-05-15

Source: https://www.modelscope.cn/models/damo/funasr-runtime-win-cpu-x64

---

# 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    下载地址:


[官网下载](https://git-scm.com/download/win) (如遇网络问题，大陆用户可以使用下述地址：[oss镜像](https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/windows/Git-2.42.0.2-64-bit.exe.zip))

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

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

#### 1.3    Git Bash安装lfs：

```shell
git lfs install
```
 

## 1、FunASR中文离线文件转写服务部署
### 1.  Git Bash运行下述命令，下载相关模型至:

`D:/funasr-runtime-resources/models`

下载指令：

```shell
 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)启动服务端：

```shell
./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)启动客户端：

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

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

[完整示例与用法](https://github.com/alibaba-damo-academy/FunASR/blob/main/runtime/docs/SDK_advanced_guide_offline_zh.md#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E7%94%A8%E6%B3%95%E8%AF%A6%E8%A7%A3)

 

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

### 1.  Git Bash运行下述命令，下载相关模型至：

`D:/funasr-runtime-resources/models`：

下载指令：

```shell
 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)启动服务端：

```shell
./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)启动客户端：

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

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

[完整示例与用法](https://github.com/alibaba-damo-academy/FunASR/blob/main/runtime/docs/SDK_advanced_guide_online_zh.md#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E7%94%A8%E6%B3%95%E8%AF%A6%E8%A7%A3)

 

## 3、FunASR英文离线文件转写服务部署
### 1.  Git Bash运行下述命令，下载相关模型至：

`D:/funasr-runtime-resources/models`

下载指令：

```shell
 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)启动服务端：

```shell
./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)启动客户端：

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

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

[完整示例与用法](https://github.com/alibaba-damo-academy/FunASR/blob/main/runtime/docs/SDK_advanced_guide_offline_en_zh.md#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E7%94%A8%E6%B3%95%E8%AF%A6%E8%A7%A3)

 
 

#### Clone with HTTP
```bash
 git clone https://www.modelscope.cn/damo/funasr-runtime-win-cpu-x64.git
```
