-
背景
用户手册中提供的TTS效果较差,对于数字的朗读方式有一定问题,比如100人会读成“幺零零人”,此处提供效果更好的TTS部署教程供大家参考。 -
部署教程
2.1 代码仓库: wunuo1/sherpa-onnx-tts
2.2 下拉代码:git clone https://github.com/k2-fsa/sherpa-onnx.git
2.3 编译sherpa-onnxcd sherpa-onnx mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make -j62.4 下载模型
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-zh-baker.tar.bz2 tar xvf matcha-icefall-zh-baker.tar.bz2 rm matcha-icefall-zh-baker.tar.bz2 wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx mv vocos-22khz-univ.onnx path_of_matcha-icefall-zh-baker2.5 编译
sudo apt install libfst-dev cd sherpa-onnx-tts ln -s path_of_sherpa-onnx . mkdir build cd build #更改test.cpp的config_path_路径为实际路径 cmake .. make -j62.6 运行
#运行前请确认 aplay -D plughw:0,0 xxx.wav能够正常播放音频 ./test_demo
1 个赞