disable this cringe precheck for now since it causes problems
This commit is contained in:
parent
f12746b091
commit
0cca4eb943
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue
Block a user