-
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
Update XTTS cloning #3207
Update XTTS cloning #3207
Conversation
@@ -255,39 +255,57 @@ def device(self): | |||
return next(self.parameters()).device | |||
|
|||
@torch.inference_mode() | |||
def get_gpt_cond_latents(self, audio, sr, length: int = 3): | |||
def get_gpt_cond_latents(self, audio, sr, length: int = 30, chunk_length: int = 6): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the default value here and in the config should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will be better, users can try to call this function individually and then get very different results. I think the better is both be equal to avoid issues like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config as in the code or the release model's config
All looks good to me. |
@erogol With this PR we will be able to use upto 30s of speaker_wav for voice cloning? Instead of 6s (before)? |
You can use any length and any number of samples. Just don't go wild. Samples should be consistent in style, pitch, etc. |
Optionally chunk input audio and average the computed latents. It prevents long silences, especially against references with many silent segments.