Code Monkey home page Code Monkey logo

Comments (6)

tomschelsen avatar tomschelsen commented on August 20, 2024

It is exposed through the voice_seed argument of the read method of the ControllableInterface class, see :

See https://github.com/DigitalPhonetics/IMS-Toucan/blob/ControllableMultilingual/run_gradio_demo.py for an example usage of that class.

from ims-toucan.

kin0303 avatar kin0303 commented on August 20, 2024

It is exposed through the voice_seed argument of the read method of the ControllableInterface class, see :

See https://github.com/DigitalPhonetics/IMS-Toucan/blob/ControllableMultilingual/run_gradio_demo.py for an example usage of that class.

can you give me an example?

from ims-toucan.

kin0303 avatar kin0303 commented on August 20, 2024

I did training in 2 languages, each with 2 speakers: male and female. How do I make it so that during inference I can choose the speakers I will use? Because I only understand that to replace the speakers we can use the audio reference

from ims-toucan.

Flux9665 avatar Flux9665 commented on August 20, 2024

There is no fixed list of speakers, there are theoretically infinite speakers possible. To change the voice, you first create a Inference Interface using a multispeaker model

class InferenceFastSpeech2(torch.nn.Module):

and then call the set utterance embedding method on the interface

def set_utterance_embedding(self, path_to_reference_audio="", embedding=None):

As argument it takes a filepath to a reference audio, which it will then load and extract an embedding. This embedding is then used as conditioning signal during inference. To change between the two speakers in your data, just call the set utterance embedding method and pass in one of the samples from the dataset from one of the speakers.

from ims-toucan.

kin0303 avatar kin0303 commented on August 20, 2024

There is no fixed list of speakers, there are theoretically infinite speakers possible. To change the voice, you first create a Inference Interface using a multispeaker model

class InferenceFastSpeech2(torch.nn.Module):

and then call the set utterance embedding method on the interface

def set_utterance_embedding(self, path_to_reference_audio="", embedding=None):

As argument it takes a filepath to a reference audio, which it will then load and extract an embedding. This embedding is then used as conditioning signal during inference. To change between the two speakers in your data, just call the set utterance embedding method and pass in one of the samples from the dataset from one of the speakers.

Thank you for your reply. For this line how to use the language if I use multilingual models?

def __init__(self, device="cpu", model_name="Meta", language="en", use_enhancement=False):

from ims-toucan.

Flux9665 avatar Flux9665 commented on August 20, 2024

You can either set the language when you create the inference interface object, but you can also change it later with the set_language method of the inference object:

def set_language(self, lang_id):

from ims-toucan.

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.