Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speaker id required #14

Open
nellorebhanuteja opened this issue Sep 26, 2023 · 1 comment
Open

speaker id required #14

nellorebhanuteja opened this issue Sep 26, 2023 · 1 comment

Comments

@nellorebhanuteja
Copy link

nellorebhanuteja commented Sep 26, 2023

Hi,

I am trying to run en model

python -m TTS.bin.synthesize --text "Hi, how are you?" --model_path en/fastpitch/best_model.pth --config_path en/fastpitch/config.json --vocoder_path en/hifigan/best_model.pth --vocoder_config_path en/hifigan/config.json --out_path speech.wav

However, I am getting an error

[!] Look like you use a multi-speaker model. You need to define either a speaker_nameor aspeaker_wavto use a multi-speaker model.
i tried using --speaker_id with 0 and 1.

@piyushsinghpasi
Copy link

piyushsinghpasi commented Oct 12, 2023

@nellorebhanuteja

--speaker_id "male"
worked for us.

We faced the same problem. I think TTS.bin.synthesize has argument parser. You can check the arguments. Argument --list_speaker_ids will list all speaker names and its corresponding indices. (It should print a dictionary something like {'female':0, 'male':1}). The argument --speaker_id seems to be misleading because for us we had to give speaker name instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants