Text-to-speech (TTS) is a natural language modeling process that requires changing units of text into units of speech for audio presentation.
This demo is an implementation to generate an audio from the giving text. It can be done by a single command or a few lines in python using `PaddleSpeech`.
## Usage
### 1. Installation
```bash
pip install paddlespeech
```
### 2. Prepare Input
Input of this demo should be a text of the specific language that can be passed via argument.
### 3. Usage
- Command Line(Recommended)
```bash
paddlespeech tts --input 今天的天气不错啊
```
Usage:
```bash
paddlespeech tts --help
```
Arguments:
-`input`(required): Input text to generate..
-`am`: Acoustic model type of tts task. Default: `fastspeech2_csmsc`.
-`am_config`: Config of acoustic model. Use deault config when it is None. Default: `None`.
-`am_ckpt`: Acoustic model checkpoint. Use pretrained model when it is None. Default: `None`.
-`am_stat`: Mean and standard deviation used to normalize spectrogram when training acoustic model. Default: `None`.