mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Fix find unique phonemes script (#1928)
* Fix find unique phonemes script * Fix unit tests
This commit is contained in:
@@ -19,6 +19,7 @@ dataset_config_en = BaseDatasetConfig(
|
||||
language="en",
|
||||
)
|
||||
|
||||
"""
|
||||
dataset_config_pt = BaseDatasetConfig(
|
||||
name="ljspeech",
|
||||
meta_file_train="metadata.csv",
|
||||
@@ -26,6 +27,7 @@ dataset_config_pt = BaseDatasetConfig(
|
||||
path="tests/data/ljspeech",
|
||||
language="pt-br",
|
||||
)
|
||||
"""
|
||||
|
||||
# pylint: disable=protected-access
|
||||
class TestFindUniquePhonemes(unittest.TestCase):
|
||||
@@ -46,7 +48,7 @@ class TestFindUniquePhonemes(unittest.TestCase):
|
||||
epochs=1,
|
||||
print_step=1,
|
||||
print_eval=True,
|
||||
datasets=[dataset_config_en, dataset_config_pt],
|
||||
datasets=[dataset_config_en],
|
||||
)
|
||||
config.save_json(config_path)
|
||||
|
||||
@@ -70,7 +72,7 @@ class TestFindUniquePhonemes(unittest.TestCase):
|
||||
epochs=1,
|
||||
print_step=1,
|
||||
print_eval=True,
|
||||
datasets=[dataset_config_en, dataset_config_pt],
|
||||
datasets=[dataset_config_en],
|
||||
)
|
||||
config.save_json(config_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user