coqui-tts/TTS/vocoder
Enno Hermann 0f69d31f70 refactor(vocoder): remove duplicate function 2024-11-24 19:57:14 +01:00
..
configs Ensures that only GPT model is in training mode during XTTS GPT training (#3241) 2023-11-17 15:13:46 +01:00
datasets refactor: remove verbose arguments 2024-04-03 15:19:45 +02:00
layers chore: remove unused TTS.utils.io module 2024-06-29 15:07:10 +02:00
models refactor(vocoder): remove duplicate function 2024-11-24 19:57:14 +01:00
utils fix: use logging instead of print statements 2024-04-03 15:19:45 +02:00
README.md Update model file extension (#1422) 2022-03-22 17:55:00 +01:00
__init__.py rename the project to old TTS 2020-09-09 12:27:23 +02:00
pqmf_output.wav rename the project to old TTS 2020-09-09 12:27:23 +02:00

README.md

Mozilla TTS Vocoders (Experimental)

Here there are vocoder model implementations which can be combined with the other TTS models.

Currently, following models are implemented:

  • Melgan
  • MultiBand-Melgan
  • ParallelWaveGAN
  • GAN-TTS (Discriminator Only)

It is also very easy to adapt different vocoder models as we provide a flexible and modular (but not too modular) framework.

Training a model

You can see here an example (Soon)Colab Notebook training MelGAN with LJSpeech dataset.

In order to train a new model, you need to gather all wav files into a folder and give this folder to data_path in '''config.json'''

You need to define other relevant parameters in your config.json and then start traning with the following command.

CUDA_VISIBLE_DEVICES='0' python tts/bin/train_vocoder.py --config_path path/to/config.json

Example config files can be found under tts/vocoder/configs/ folder.

You can continue a previous training run by the following command.

CUDA_VISIBLE_DEVICES='0' python tts/bin/train_vocoder.py --continue_path path/to/your/model/folder

You can fine-tune a pre-trained model by the following command.

CUDA_VISIBLE_DEVICES='0' python tts/bin/train_vocoder.py --restore_path path/to/your/model.pth

Restoring a model starts a new training in a different folder. It only restores model weights with the given checkpoint file. However, continuing a training starts from the same directory where the previous training run left off.

You can also follow your training runs on Tensorboard as you do with our TTS models.

Acknowledgement

Thanks to @kan-bayashi for his repository being the start point of our work.