mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Fix tokenizer init_from_config
This commit is contained in:
@@ -146,8 +146,9 @@ class TTSTokenizer:
|
||||
the config values. Defaults to None.
|
||||
"""
|
||||
# init cleaners
|
||||
text_cleaner = None
|
||||
if isinstance(config.text_cleaner, (str, list)):
|
||||
text_cleaner = getattr(cleaners, config.text_cleaner)
|
||||
text_cleaner = getattr(config, "text_cleaner")
|
||||
|
||||
# init characters
|
||||
if characters is None:
|
||||
|
||||
Reference in New Issue
Block a user