mirror of https://github.com/coqui-ai/TTS.git
Fix unit tests
This commit is contained in:
parent
c7af7c6474
commit
24274c58f8
|
@ -257,7 +257,7 @@ class EmbeddingManager(BaseIDManager):
|
|||
embedding = _compute(wav_file)
|
||||
return embedding[0].tolist()
|
||||
|
||||
def compute_embedding(self, feats: Union[torch.Tensor, np.ndarray]) -> List:
|
||||
def compute_embeddings(self, feats: Union[torch.Tensor, np.ndarray]) -> List:
|
||||
"""Compute embedding from features.
|
||||
|
||||
Args:
|
||||
|
|
|
@ -210,7 +210,7 @@ class Synthesizer(object):
|
|||
# handle multi-speaker
|
||||
speaker_embedding = None
|
||||
speaker_id = None
|
||||
if self.tts_speakers_file or hasattr(self.tts_model.speaker_manager, "speaker_ids"):
|
||||
if self.tts_speakers_file or hasattr(self.tts_model.speaker_manager, "ids"):
|
||||
if speaker_name and isinstance(speaker_name, str):
|
||||
if self.tts_config.use_d_vector_file:
|
||||
# get the average speaker embedding from the saved d_vectors.
|
||||
|
|
Loading…
Reference in New Issue