tacotron2/README.md

38 lines
800 B
Markdown
Raw Permalink Normal View History

2019-09-20 19:49:30 +00:00
# Taco2 TTS
[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
> Generates speech audio from text
2019-09-20 19:49:30 +00:00
---
# Table of Contents
* [Features](#features)
* [Installation](#installation)
* [Usage](#usage)
# Features
* TTS using Tacotron2
2019-09-20 19:49:30 +00:00
# Installation
To install the packages and its dependencies run.
2019-09-20 19:49:30 +00:00
```bash
python setup.py install
```
or with pip
```bash
pip install .
```
2019-09-20 19:49:30 +00:00
The installation should work on Python 3.6 or newer. Untested on Python 2.7
2019-09-20 19:49:30 +00:00
# Usage
```python
from taco2.tts import TTSModel
tts_model = TTSModel("/path/to/tacotron2_model","/path/to/waveglow_model") # Loads the models
SPEECH_AUDIO = tts_model.synth_speech(TEXT) # Returns the wav buffer
2019-09-20 19:49:30 +00:00
```
If `'/path/to/waveglow_model'` is `None` *Griffin-Lim vocoder* will be used.