Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix tts_with_vc #3275

Merged
merged 3 commits into from
Nov 24, 2023
Merged

Fix tts_with_vc #3275

merged 3 commits into from
Nov 24, 2023

Conversation

eginhard
Copy link
Contributor

@erogol It would be useful to check in tts_with_vc() whether the underlying model supports voice cloning directly and direct users to tts_to_file(..., speaker_wav="...") in that case to avoid issues like in #3067. Is there some way to check this easily?

This reverts commit 041b4b6.

Fixes coqui-ai#3143. The original issue (coqui-ai#3067) was people trying to use
tts.tts_with_vc_to_file() with XTTS and was "fixed" in coqui-ai#3109. But XTTS has
integrated VC and you can just do tts.tts_to_file(..., speaker_wav="..."), there
is no point in passing it through FreeVC afterwards. So, reverting this commit
because it breaks tts.tts_with_vc_to_file() for any model that doesn't have
integrated VC, i.e. all models this method is meant for.
Fixes coqui-ai#1440. Passing a `speaker_wav` argument to regular Vits models failed
because they don't support voice cloning. Now that argument is simply ignored.
@erogol
Copy link
Member

erogol commented Nov 22, 2023

Rerunning failes CI, looks like random quirks. If they pass, I merge. Thanks for the PR.

@erogol
Copy link
Member

erogol commented Nov 22, 2023

@eginhard most of the models needs speaker_manager if they voice clone but I don't think it applies them all. We should probably attribute them in the model classes.

@eginhard
Copy link
Contributor Author

CI seems happy now :)

@eginhard most of the models needs speaker_manager if they voice clone but I don't think it applies them all. We should probably attribute them in the model classes.

Ok, I've peeled this to a new issue to keep track. I'm not familiar enough with all the models to take care of it now.

@erogol erogol merged commit 8c5227e into coqui-ai:dev Nov 24, 2023
@eginhard eginhard deleted the fix-tts-with-vc branch March 30, 2024 21:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
2 participants