Coder Social home page Coder Social logo

Comments (3)

cfrancesco avatar cfrancesco commented on June 2, 2024 1

I would like to use the code to generate some audio samples as voice-overs for some tutorials I'm creating. I've been testing the code out, and as @aayushkubb mentioned, there are missing words and other odd behaviour. I do understand though that there are some technical limitations mentioned.

My machine learning background is fairly lacking so excuse my terminology and lack of understanding, however, I would like to use the 'Autoregressive + MelGAN' colab since it sounds best. Would it be possible to use the Autoregressive model to only train the forward model (MelGAN), and then feed a custom sentence to MelGAN for it vocalize?

In terms of code, that doesn't seem so possible. The relevant bits after dissecting it a bit are the sections below. I would like to feed the torch.tensor() function a custom sentence like the Autoregressive portion and not the output audio file of the Autoregressive. Does this even make sense in the context of this machine learning algorithm?

# Synthesize text
sentence = 'Scientists at the CERN laboratory, say that they have discovered a new particle.'
out = model.predict(sentence)
sys.path.append(MelGAN_path)
import torch
import numpy as np

vocoder = torch.hub.load('seungwonpark/melgan', 'melgan')
vocoder.eval()

mel = torch.tensor(out['mel'].numpy().T[np.newaxis,:,:])

I'm not sure about the last portion of you message, but I would recommend you use the Forward model for TTS (for highest stavbility, autoregressive is just very unstable) and convert with WaverRNN for the highest quality.

The thing you feed to the vocoder (either MelGAN or WaverRNN) are spectrogram predictions from TTS models, so neither text nor audio.

If you have more questions please open a new issue.

from transformertts.

cfrancesco avatar cfrancesco commented on June 2, 2024

Yes, the autoregressive model is unstable and hard to train. It should only be used to train the forward model.
Pauses are hard to predict if there is a lot of variations and skipping words is a known issue.

Are the decoder heads aligning properly? (check this from tensorboard)

from transformertts.

othmanalikhan avatar othmanalikhan commented on June 2, 2024

I would like to use the code to generate some audio samples as voice-overs for some tutorials I'm creating. I've been testing the code out, and as @aayushkubb mentioned, there are missing words and other odd behaviour. I do understand though that there are some technical limitations mentioned.

My machine learning background is fairly lacking so excuse my terminology and lack of understanding, however, I would like to use the 'Autoregressive + MelGAN' colab since it sounds best. Would it be possible to use the Autoregressive model to only train the forward model (MelGAN), and then feed a custom sentence to MelGAN for it vocalize?

In terms of code, that doesn't seem so possible. The relevant bits after dissecting it a bit are the sections below. I would like to feed the torch.tensor() function a custom sentence like the Autoregressive portion and not the output audio file of the Autoregressive. Does this even make sense in the context of this machine learning algorithm?

# Synthesize text
sentence = 'Scientists at the CERN laboratory, say that they have discovered a new particle.'
out = model.predict(sentence)
sys.path.append(MelGAN_path)
import torch
import numpy as np

vocoder = torch.hub.load('seungwonpark/melgan', 'melgan')
vocoder.eval()

mel = torch.tensor(out['mel'].numpy().T[np.newaxis,:,:])

from transformertts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.