diff --git a/TTS/tts/models/base_tts.py b/TTS/tts/models/base_tts.py index c86bd391b4..df64429d8f 100644 --- a/TTS/tts/models/base_tts.py +++ b/TTS/tts/models/base_tts.py @@ -137,7 +137,7 @@ def get_aux_input_from_test_setences(self, sentence_info): if hasattr(self, "speaker_manager"): if config.use_d_vector_file: if speaker_name is None: - d_vector = self.speaker_manager.get_random_embeddings() + d_vector = self.speaker_manager.get_random_embedding() else: d_vector = self.speaker_manager.get_d_vector_by_name(speaker_name) elif config.use_speaker_embedding: diff --git a/TTS/tts/models/vits.py b/TTS/tts/models/vits.py index 9263c0b11a..2918d21762 100644 --- a/TTS/tts/models/vits.py +++ b/TTS/tts/models/vits.py @@ -1350,7 +1350,7 @@ def get_aux_input_from_test_sentences(self, sentence_info): if hasattr(self, "speaker_manager"): if config.use_d_vector_file: if speaker_name is None: - d_vector = self.speaker_manager.get_random_embeddings() + d_vector = self.speaker_manager.get_random_embedding() else: d_vector = self.speaker_manager.get_mean_embedding(speaker_name, num_samples=None, randomize=False) elif config.use_speaker_embedding: