mirror of https://github.com/coqui-ai/TTS.git
Fix function name
parent
9781e4d516
commit
1251d04387
|
@ -491,7 +491,7 @@ class Vits(BaseTTS):
|
||||||
sid, g, lid = self._set_cond_input(aux_input)
|
sid, g, lid = self._set_cond_input(aux_input)
|
||||||
return {"speaker_id": sid, "style_wav": None, "d_vector": g, "language_id": lid}
|
return {"speaker_id": sid, "style_wav": None, "d_vector": g, "language_id": lid}
|
||||||
|
|
||||||
def get_aux_input_from_test_setences(self, sentence_info):
|
def get_aux_input_from_test_sentences(self, sentence_info):
|
||||||
if hasattr(self.config, "model_args"):
|
if hasattr(self.config, "model_args"):
|
||||||
config = self.config.model_args
|
config = self.config.model_args
|
||||||
else:
|
else:
|
||||||
|
@ -907,7 +907,7 @@ class Vits(BaseTTS):
|
||||||
test_sentences = self.config.test_sentences
|
test_sentences = self.config.test_sentences
|
||||||
for idx, s_info in enumerate(test_sentences):
|
for idx, s_info in enumerate(test_sentences):
|
||||||
try:
|
try:
|
||||||
aux_inputs = self.get_aux_input_from_test_setences(s_info)
|
aux_inputs = self.get_aux_input_from_test_sentences(s_info)
|
||||||
wav, alignment, _, _ = synthesis(
|
wav, alignment, _, _ = synthesis(
|
||||||
self,
|
self,
|
||||||
aux_inputs["text"],
|
aux_inputs["text"],
|
||||||
|
|
Loading…
Reference in New Issue