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

Fix issues for fairseq model handling and VC when speaker_wav is passed #3765

Closed
wants to merge 2 commits into from

Commits on May 29, 2024

  1. Extract dataset and model for fairseq models

    When we use the model "tts_models/eng/fairseq/vits", got the following error.
    
    Error in text to speech: cannot access local variable 'dataset' where it is not associated with a value
    
    at line ..../.conda/envs/venv/lib/python3.11/site-packages/TTS/utils/manage.py", line 304, in _set_model_item
        model_full_name = f"{model_type}--{lang}--{dataset}--{model}"
    hanasim authored May 29, 2024
    Configuration menu
    Copy the full SHA
    0d1aa58 View commit details
    Browse the repository at this point in the history
  2. Pass speaker_wav argument to tts_to_file in tts_with_vc method

    When `tts_with_vc_to_file` is invoked with only `speaker_wav` and not `speaker`, it was throwing the error.
    
    Error in text to speech: Model is multi-speaker but no `speaker` is provided.
    
    ```
     File ".../.conda/envs/venv/lib/python3.11/site-packages/TTS/api.py", line 416, in tts_with_vc
        self.tts_to_file(
      File ".../.conda/envs/venv/lib/python3.11/site-packages/TTS/api.py", line 333, in tts_to_file
        self._check_arguments(speaker=speaker, language=language, speaker_wav=speaker_wav, **kwargs)
      File ".../.conda/envs/venv/lib/python3.11/site-packages/TTS/api.py", line 228, in _check_arguments
        raise ValueError("Model is multi-speaker but no `speaker` is provided.")
    ValueError: Model is multi-speaker but no `speaker` is provided.
    ERROR:app.std.app_logger:Error in text to speech: Model is multi-speaker but no `speaker` is provided.
    hanasim authored May 29, 2024
    Configuration menu
    Copy the full SHA
    635e914 View commit details
    Browse the repository at this point in the history