yammed
This commit is contained in:
parent
249c6019af
commit
96b7f9d2cc
|
@ -1894,7 +1894,7 @@ def tokenize_text( text, stringed=True, skip_specials=False ):
|
||||||
if not tts:
|
if not tts:
|
||||||
tokenizer = VoiceBpeTokenizer(args.tokenizer_json if args.tokenizer_json else get_tokenizer_jsons()[0])
|
tokenizer = VoiceBpeTokenizer(args.tokenizer_json if args.tokenizer_json else get_tokenizer_jsons()[0])
|
||||||
else:
|
else:
|
||||||
tts.tokenizer
|
tokenizer = tts.tokenizer
|
||||||
|
|
||||||
encoded = tokenizer.encode(text)
|
encoded = tokenizer.encode(text)
|
||||||
decoded = tokenizer.tokenizer.decode(encoded, skip_special_tokens=skip_specials).split(" ")
|
decoded = tokenizer.tokenizer.decode(encoded, skip_special_tokens=skip_specials).split(" ")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user