olivebot/test/funasr/README.md
xszyou 524e4d0e65 提供funasr集成
1、修正语音和文字的交互逻辑;
2、提供funasr的可选集成。
2023-05-17 18:38:47 +08:00

37 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 语音服务介绍
该服务以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).