Closed tigerzhanglaihu closed 3 months ago
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.
Describe the bug
To Reproduce
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
Additional context
No response