question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] ValueError running YourTTS model on tts-server

See original GitHub issue

🐛 Description

I am trying to run the YourTTS model on the tts-server. I am hitting Internal server error. When I check the log I see ValueError: [!] Look like you use a multi-lingual model. You need to define either a language_name or a style_wav to use a multi-lingual model.

To Reproduce

Here is the command: tts-server --model_name tts_models/multilingual/multi-dataset/your_tts

Environment

  • 🐸TTS Version (e.g., 1.3.0): 0.5.0
  • PyTorch Version (e.g., 1.8): 1.10.0
  • Python version: 3.7.10
  • OS (e.g., Linux): Linux
  • CUDA/cuDNN version: None
  • GPU models and configuration: None
  • How you installed PyTorch (conda, pip, source): pip
  • Any other relevant information:

Additional context

Here is the log

 " [!] Look like you use a multi-lingual model. "                             
ValueError:  [!] Look like you use a multi-lingual model. You need to define either a language_name or a style_wav to use a multi-lingual model.                                                                          
::1 - - [06/Jan/2022 23:14:17] "GET /api/tts?text=hi&speaker_id=male-pt-3%0A&style_wav= HTTP/1.1" 500 -  

Other models work fine. The problem looks like it is only for YourTTS model

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
godspirit00commented, Jan 9, 2022

I think it is because the server.py @ L176 does not pass a language_name to synthesizer.tts() just like synthesize.py @ L287.

So to fix this, just pass the language_name like en to synthesizer.tts.

    wavs = synthesizer.tts(text, speaker_name=speaker_idx, language_name="en", style_wav=style_wav)
0reactions
erogolcommented, Jan 10, 2022

server.py does not support YourTTS fully yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot start training of multilingual VITS model due ... - GitHub
Cannot start training of multilingual VITS model due to ValueError. ... So I resorted to the multilingual recipe for VITS but received this...
Read more >
TTS 0.10.0 documentation
TTS comes with pretrained models, tools for measuring dataset quality and already used in 20+ languages for products and research projects.
Read more >
[Bug] ValueError running YourTTS model on tts-server
I am trying to run the YourTTS model on the tts-server. I am hitting Internal server error. When I check the log I...
Read more >
YourTTS: Zero-Shot Multi-Speaker Text Synthesis and Voice ...
You can train your own model, synthesize voice with the pre-trained model or finetune it with your dataset.
Read more >
comprise-personal-server - TTS - GitLab Inria
Run a tts and a vocoder model from the released model list. (Simply copy and paste the full model names from the list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found