mirror of
https://github.com/wassname/TTS.git
synced 2026-09-12 12:11:47 +08:00
Update tests
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
import unittest
|
||||
|
||||
from TTS.tts.utils.text.characters import BaseCharacters, Graphemes, IPAPhonemes, create_graphemes, create_phonemes
|
||||
from TTS.tts.utils.text.characters import BaseCharacters, Graphemes, IPAPhonemes
|
||||
|
||||
# pylint: disable=protected-access
|
||||
|
||||
|
||||
def test_make_symbols():
|
||||
_ = create_phonemes()
|
||||
_ = create_graphemes()
|
||||
|
||||
|
||||
class BaseCharacterTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.characters_empty = BaseCharacters("", "", pad="", eos="", bos="", blank="", is_unique=True, is_sorted=True)
|
||||
|
||||
@@ -64,6 +64,7 @@ class TestTTSTokenizer(unittest.TestCase):
|
||||
def test_init_from_config(self):
|
||||
@dataclass
|
||||
class Characters(Coqpit):
|
||||
characters_class: str = None
|
||||
characters: str = _phonemes
|
||||
punctuations: str = _punctuations
|
||||
pad: str = _pad
|
||||
|
||||
Reference in New Issue
Block a user