Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed May 23, 2023
1 parent 0a23914 commit acf43ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def print_model_license(model_item: Dict):

def download_fairseq_model(self, model_name, output_path):
URI_PREFIX = "coqui.gateway.scarf.sh/fairseq/"
model_type, lang, dataset, model = model_name.split("/")
_, lang, _, _ = model_name.split("/")
model_download_uri = os.path.join(URI_PREFIX, f"{lang}.tar.gz")
self._download_tar_file(model_download_uri, output_path, self.progress_bar)

Expand Down
4 changes: 4 additions & 0 deletions tests/inference_tests/test_python_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def test_studio_model(self):
wav = tts.tts(text="This is a test.", speed=2.0, emotion="Sad")
self.assertGreater(len(wav), 0)

def test_fairseq_model(self):
tts = TTS(model_name="tts_models/eng/fairseq/vits")
tts.tts_to_file(text="This is a test.")

def test_multi_speaker_multi_lingual_model(self):
tts = TTS()
tts.load_tts_model_by_name(tts.models[0]) # YourTTS
Expand Down

0 comments on commit acf43ac

Please sign in to comment.