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

[Bug] Install bug Failed to download the model file to tts_models--multilingual--multi-dataset--xtts_v2 #3665

Open
tigerzhanglaihu opened this issue Apr 4, 2024 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.

Comments

@tigerzhanglaihu
Copy link

Describe the bug

Failed to download the model file to C:\Users\coman\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2
Traceback (most recent call last):
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 85, in create_connection
raise err
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)

To Reproduce

  1. Run the following command '...'
  2. use this code
    import torch
    from TTS.api import TTS

Get device

device = "cuda" if torch.cuda.is_available() else "cpu"

List available 🐸TTS models

print(TTS().list_models())

Init TTS

tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)

Run TTS

❗ Since this model is multi-lingual voice cloning model, we must set the target speaker_wav and language

Text to speech list of amplitude values as output

wav = tts.tts(text="Hello world!", speaker_wav="audio.wav", language="en")

Text to speech to a file

tts.tts_to_file(text="Hello world!", speaker_wav="audio.wav", language="en", file_path="output.wav")
3, > Failed to download the model file to C:\Users\coman\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2
Traceback (most recent call last):
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 85, in create_connection
raise err
File "C:\Users\coman\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)

Expected behavior

Can an external link be provided to download the relevant model? There is no relevant information in the log either. I tried print url but there wasn't a real url either. To easy install.

Logs

No response

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": null
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "2.2.2+cpu",
        "TTS": "0.22.0",
        "numpy": "1.26.4"
    },
    "System": {
        "OS": "Windows",
        "architecture": [
            "64bit",
            "WindowsPE"
        ],
        "processor": "Intel64 Family 6 Model 151 Stepping 5, GenuineIntel",
        "python": "3.11.8",
        "version": "10.0.19045"
    }
}

Additional context

No response

@tigerzhanglaihu tigerzhanglaihu added the bug Something isn't working label Apr 4, 2024
Copy link

stale bot commented May 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.

@stale stale bot added the wontfix This will not be worked on but feel free to help. label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.
Projects
None yet
Development

No branches or pull requests

1 participant