-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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] xtts_v2, AttributeError: 'TTS' object has no attribute 'speakers' #3742
Comments
This is fixed by eginhard#8 in our fork, available via |
Thanks@eginhard! Had no idea this repo was abandoned. |
Thanks @eginhard. This repo should probably be marked as read-only/archive by its owners. |
Hi, @chigkim |
It's a bug, and it's fixed in another fork. |
@Asrithapenmetsa Placing code between triple backticks would make it easier to read... Could you also share the full error trace, not just the last line? |
Your error message model = TTS('tts_models/en/ljspeech/vits').to(device)
NameError: name 'device' is not defined tells you that the variable device = "cuda" if torch.cuda.is_available() else "cpu" |
Thank you so much .
It got fixed.
Thanks
…On Sun, 28 Jul 2024 at 01:41, Enno Hermann ***@***.***> wrote:
Your error message
model = TTS('tts_models/en/ljspeech/vits').to(device)NameError: name 'device' is not defined
tells you that the variable device is not defined. So add a line that
defines it before, e.g.
device = "cuda" if torch.cuda.is_available() else "cpu"
—
Reply to this email directly, view it on GitHub
<#3742 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAJMUGOZLVVHMNKNANNWPXDZOP5HXAVCNFSM6AAAAABH2IMAYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGI2DGMRSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the bug
If I run tts.speakers after loading xtts_v2, it throws an error: 'TTS' object has no attribute 'speakers'.
To Reproduce
import torch
from TTS.api import TTS
device = "cuda" if torch.cuda.is_available() else "cpu"
model = "tts_models/multilingual/multi-dataset/xtts_v2"
tts = TTS(model).to(device)
tts.speakers
Expected behavior
It should list all the speaker names.
Logs
Environment
Additional context
Other multi speaker models like vctk/vits work fine using the same method.
The text was updated successfully, but these errors were encountered: