wangnanbo / masr,真·端到端模型

克隆项目git clone https://github.com/lukhy/masr.git

在github项目release页面下载预训练模型,拷贝到masr/pretrained目录下,拷贝test.wavmasr根目录下。

examples/demo-recognize.py```不用语言模型,直接识别出文本,准确率会比较低
1
2
3
4

下载[来自百度的语言模型](https://gitee.com/link?target=https%3A%2F%2Fdeepspeech.bj.bcebos.com%2Fzh_lm%2Fzh_giga.no_cna_cmn.prune01244.klm),把语言模型文件拷贝到```masr/lm```目录下

到wsl中,安装ctcdecode依赖(在windows平台上有如下报错:编译ctcdecode的时候找不到依赖POSIX的dlfcn.h头文件)

git clone –recursive https://github.com/parlance/ctcdecode.git
cd ctcdecode
pip install .

```

搭建服务端python examples/demo-server.py

客户端发送请求得到识别结果python examples/demo-client.py

来自MASR 中文语音识别

创建于2023.3.24/17.45,修改于2023.3.24/17.45