一、实验内容
tacotronv2_wavernn_chinese-demo pag-测试合成语音的效果
二、实验目的
通过对输入文本进行语音合成,并评估合成语音的自然度、流畅度和准确性,以验证tacotronv2_wavernn_chinese-demo页面的性能和可用性。
三、实验步骤
- 配置环境
①首先下载基础包,如果有下不了的包 可以先跳过。
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
②由于tensorflow==1.14 需要 python版本<=3.7
③下载torch--上官网https://pytorch.org/get-started/previous-versions/查看版本对应关系,
根据你的cuda版本选择
2、运行测试
如果没有代码工程,需要先执行前两步克隆工程
git clone https://github.com/lturing/tacotronv2_wavernn_chinese.git
cd tacotronv2_wavernn_chinese
如果有的话,直接执行 ,python tacotron_synthesize.py --text '现在是凌晨零点二十七分,帮您订好上午八点的闹钟。'
四、实验结果
#合成的wav、attention align等在./tacotron_inference_output下
五、遇到的问题和解决方法
1、在运行最后一条命令 python tacotron_synthesize.py --text '现在是凌晨零点二十七分,帮您订好上午八点的闹钟。'
① 第一个错误 no moduled named numba.decorators
解决办法:首先找到你安装的librosa的库中的decorators.py文件 一般在这里.\Lib\site-packages\librosa\util\decorators.py。 注释第九行
详细解决办法看这里--http://t.csdnimg.cn/HGEF3
②第二个错误
解决办法:pip uninstall protobuf
pip install protobuf==3.20.1
引用来自:http://t.csdnimg.cn/dUk9u
2、如果需要克隆项目,可能会有遇到以下错误:
error: RPC failed; curl 28 OpenSSL SSL_read: Connection was reset, errno 10054 fatal: expected flush after ref listing
解决办法:执行 git config --global http.sslVerify "false" 即可
引用来自:http://t.csdnimg.cn/tjgKr