voice-xtts2 / tests /symbols_tests.py
antoniomae1234's picture
changes in flenema
2493d72 verified
raw
history blame contribute delete
No virus
276 Bytes
import unittest
from TTS.tts.utils.text import phonemes
class SymbolsTest(unittest.TestCase):
def test_uniqueness(self): #pylint: disable=no-self-use
assert sorted(phonemes) == sorted(list(set(phonemes))), " {} vs {} ".format(len(phonemes), len(set(phonemes)))