Skip to content

Commit 54139f6

Browse files
author
Eren Gölge
authored
Update README.md
1 parent 71e24f4 commit 54139f6

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

README.md

+18-10
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ TTS supports **python >= 3.6, <3.9**.
9797

9898
If you are only interested in [synthesizing speech](https://github.com/mozilla/TTS/tree/dev#example-synthesizing-speech-on-terminal-using-the-released-models) with the released TTS models, installing from PyPI is the easiest option.
9999

100-
```
100+
```bash
101101
pip install TTS
102102
```
103103

104104
If you plan to code or train models, clone TTS and install it locally.
105105

106-
```
106+
```bash
107107
git clone https://github.com/mozilla/TTS
108108
pip install -e .
109109
```
@@ -157,28 +157,28 @@ Some of the public datasets that we successfully applied TTS:
157157
After the installation, TTS provides a CLI interface for synthesizing speech using pre-trained models. You can either use your own model or the release models under the TTS project.
158158

159159
Listing released TTS models.
160-
```
160+
```bash
161161
tts --list_models
162162
```
163163

164164
Run a tts and a vocoder model from the released model list. (Simply copy and paste the full model names from the list as arguments for the command below.)
165-
```console
165+
```bash
166166
tts --text "Text for TTS" \
167167
--model_name "<type>/<language>/<dataset>/<model_name>" \
168168
--vocoder_name "<type>/<language>/<dataset>/<model_name>" \
169169
--out_path folder/to/save/output/
170170
```
171171

172172
Run your own TTS model (Using Griffin-Lim Vocoder)
173-
```console
173+
```bash
174174
tts --text "Text for TTS" \
175175
--model_path path/to/model.pth.tar \
176176
--config_path path/to/config.json \
177177
--out_path output/path/speech.wav
178178
```
179179

180180
Run your own TTS and Vocoder models
181-
```console
181+
```bash
182182
tts --text "Text for TTS" \
183183
--model_path path/to/config.json \
184184
--config_path path/to/model.pth.tar \
@@ -204,19 +204,27 @@ To train a new model, you need to define your own ```config.json``` to define mo
204204

205205
For instance, in order to train a tacotron or tacotron2 model on LJSpeech dataset, follow these steps.
206206

207-
```python TTS/bin/train_tacotron.py --config_path TTS/tts/configs/config.json```
207+
```bash
208+
python TTS/bin/train_tacotron.py --config_path TTS/tts/configs/config.json
209+
```
208210

209211
To fine-tune a model, use ```--restore_path```.
210212

211-
```python TTS/bin/train_tacotron.py --config_path TTS/tts/configs/config.json --restore_path /path/to/your/model.pth.tar```
213+
```bash
214+
python TTS/bin/train_tacotron.py --config_path TTS/tts/configs/config.json --restore_path /path/to/your/model.pth.tar
215+
```
212216

213217
To continue an old training run, use ```--continue_path```.
214218

215-
```python TTS/bin/train_tacotron.py --continue_path /path/to/your/run_folder/```
219+
```bash
220+
python TTS/bin/train_tacotron.py --continue_path /path/to/your/run_folder/
221+
```
216222

217223
For multi-GPU training, call ```distribute.py```. It runs any provided train script in multi-GPU setting.
218224

219-
```CUDA_VISIBLE_DEVICES="0,1,4" python TTS/bin/distribute.py --script train_tacotron.py --config_path TTS/tts/configs/config.json```
225+
```bash
226+
CUDA_VISIBLE_DEVICES="0,1,4" python TTS/bin/distribute.py --script train_tacotron.py --config_path TTS/tts/configs/config.json
227+
```
220228

221229
Each run creates a new output folder accomodating used ```config.json```, model checkpoints and tensorboard logs.
222230

0 commit comments

Comments
 (0)