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

Fix issues for fairseq model handling and VC when speaker_wav is passed #3765

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def tts_with_vc(
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
# Lazy code... save it to a temp file to resample it while reading it for VC
self.tts_to_file(
text=text, speaker=speaker, language=language, file_path=fp.name, split_sentences=split_sentences
text=text, speaker=speaker, speaker_wav=speaker_wav, language=language, file_path=fp.name, split_sentences=split_sentences
)
if self.voice_converter is None:
self.load_vc_model_by_name("voice_conversion_models/multilingual/vctk/freevc24")
Expand Down
2 changes: 2 additions & 0 deletions TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def _set_model_item(self, model_name):
if "fairseq" in model_name:
model_type = "tts_models"
lang = model_name.split("/")[1]
dataset = model_name.split("/")[2]
model = model_name.split("/")[3]
model_item = {
"model_type": "tts_models",
"license": "CC BY-NC 4.0",
Expand Down
Loading