MCPcopy
hub / github.com/coqui-ai/TTS / test_phonemize

Method test_phonemize

tests/text_tests/test_phonemizer.py:194–197  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 """
193
194 def test_phonemize(self):
195 for line in self._TEST_CASES.strip().split("\n"):
196 text, phone = line.split("/")
197 self.assertEqual(self.phonemizer.phonemize(text, separator=""), phone)
198
199 def test_name(self):
200 self.assertEqual(self.phonemizer.name(), "ja_jp_phonemizer")

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
phonemizeMethod · 0.45

Tested by

no test coverage detected