Files
FastDeploy/examples/audio/pp-tts/python/README_cn.md
Thomas Young f2c09a87a6 Add tts python example and change onnx to paddle (#420)
* add tts example

* update example

* update use fd engine

* add tts python example

* add readme

* fix comment

* change paddle model

* fix readme style

Co-authored-by: Jason <jiangjiajun@baidu.com>
2022-10-25 10:24:56 +08:00

27 lines
801 B
Markdown

(简体中文|[English](./README.md))
# PP-TTS流式语音合成Python示例
## 介绍
本文介绍了使用FastDeploy运行流式语音合成的示例.
## 使用
### 1. 安装
```bash
apt-get install libsndfile1 wget zip
对于Centos系统,使用yum install libsndfile-devel wget zip
python3 -m pip install --upgrade pip
pip3 install -U fastdeploy-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html
pip3 install -U paddlespeech paddlepaddle soundfile matplotlib
```
### 2. 运行示例
```bash
python3 stream_play_tts.py
```
### 3. 运行效果
完整的语音合成音频被保存为`demo_stream.wav`文件.
用户可以在自己的终端上安装pyaudio, 对语音合成的结果进行实时播放, 相关代码在stream_play_tts.py处于注释状态, 用户可自行调试运行.