disable this cringe precheck for now since it causes problems

This commit is contained in:
mrq 2025-05-22 13:21:36 -05:00
parent f12746b091
commit 0cca4eb943

View File

@ -114,10 +114,12 @@ class TTS():
return text
# check if tokenizes without any unks (for example, if already phonemized text is passes)
"""
if precheck and "<unk>" in self.symmap:
tokens = tokenize( text )
if self.symmap["<unk>"] not in tokens:
return torch.tensor( tokens )
"""
if not phonemize:
return torch.tensor( text_tokenize( text ) )