olivebot/test/funasr/README.md

37 lines
1.2 KiB
Markdown
Raw Normal View History

## 语音服务介绍
该服务以modelscope funasr语音识别为基础
## Install
pip install torch
pip install modelscope
pip install testresources
pip install websockets
pip install torchaudio
git clone https://github.com/alibaba-damo-academy/FunASR.git
pip install ./FunASR(若editdistance编译不通过请手动安装 pip install editdistance,在FunASR/setup.py也注释掉再执行)
## Start server
1、从百度网盘下载并解压模型文件到fay/test/funasr/data目录
链接https://pan.baidu.com/s/17SJqWIo9zeGAZxPCMIsHJA?pwd=5fzr
提取码5fzr
2、python -u ASR_server.py --host "0.0.0.0" --port 10197 --ngpu 0 --model ./data/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404
## Fay connect
更改fay/system.conf配置项并重新启动fay.
https://www.bilibili.com/video/BV1qs4y1g74e/?share_source=copy_web&vd_source=64cd9062f5046acba398177b62bea9ad
## Acknowledge
感谢
1. 中科大脑算法工程师张聪聪
2. [cgisky1980](https://github.com/cgisky1980/FunASR)
3. [modelscope](https://github.com/modelscope/modelscope)
4. [FunASR](https://github.com/alibaba-damo-academy/FunASR)
5. [Fay数字人助理](https://github.com/TheRamU/Fay).