Do not double phonemize if using VALL-E backend (I wonder how many hours I've wasted from this oversight)

This commit is contained in:
mrq 2023-08-26 00:02:17 +00:00
parent b4dc103931
commit 690947ad36

View File

@ -2475,6 +2475,9 @@ def phonemizer( text, language="en-us" ):
tokenized = " ".join( tokens )
def should_phonemize():
if args.tts_backend == "vall-e":
return False
should = args.tokenizer_json is not None and args.tokenizer_json[-8:] == "ipa.json"
if should:
try: