Skip to content

Commit

Permalink
Update unit tests and recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Edresson authored and erogol committed Nov 6, 2023
1 parent 72b2bac commit 1b6f8d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TTS/tts/models/xtts.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def get_conditioning_latents(
):
# deal with multiples references
if not isinstance(audio_path, list):
audio_paths = list(audio_path)
audio_paths = [audio_path]
else:
audio_paths = audio_path

Expand Down
4 changes: 2 additions & 2 deletions recipes/ljspeech/xtts_v1/train_gpt_xtts.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@


# Training sentences generations
SPEAKER_REFERENCE = (
SPEAKER_REFERENCE = [
"./tests/data/ljspeech/wavs/LJ001-0002.wav" # speaker reference to be used in training test sentences
)
]
LANGUAGE = config_dataset.language


Expand Down
4 changes: 2 additions & 2 deletions recipes/ljspeech/xtts_v2/train_gpt_xtts.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@


# Training sentences generations
SPEAKER_REFERENCE = (
SPEAKER_REFERENCE = [
"./tests/data/ljspeech/wavs/LJ001-0002.wav" # speaker reference to be used in training test sentences
)
]
LANGUAGE = config_dataset.language


Expand Down
2 changes: 1 addition & 1 deletion tests/xtts_tests/test_xtts_gpt_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@


# Training sentences generations
SPEAKER_REFERENCE = "tests/data/ljspeech/wavs/LJ001-0002.wav" # speaker reference to be used in training test sentences
SPEAKER_REFERENCE = ["tests/data/ljspeech/wavs/LJ001-0002.wav"] # speaker reference to be used in training test sentences
LANGUAGE = config_dataset.language


Expand Down
2 changes: 1 addition & 1 deletion tests/xtts_tests/test_xtts_v2-0_gpt_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@


# Training sentences generations
SPEAKER_REFERENCE = "tests/data/ljspeech/wavs/LJ001-0002.wav" # speaker reference to be used in training test sentences
SPEAKER_REFERENCE = ["tests/data/ljspeech/wavs/LJ001-0002.wav"] # speaker reference to be used in training test sentences
LANGUAGE = config_dataset.language


Expand Down

0 comments on commit 1b6f8d0

Please sign in to comment.