File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,13 @@ def load_normalizer(chat: ChatTTS.Chat):
51
51
)
52
52
53
53
54
- def main (texts : List [str ],
55
- spk : Optional [str ] = None ,
56
- stream : bool = False ,
57
- source : str = "local" ,
58
- custom_path : str = "" ,
59
- ):
54
+ def main (
55
+ texts : List [str ],
56
+ spk : Optional [str ] = None ,
57
+ stream : bool = False ,
58
+ source : str = "local" ,
59
+ custom_path : str = "" ,
60
+ ):
60
61
logger .info ("Text input: %s" , str (texts ))
61
62
62
63
chat = ChatTTS .Chat (get_logger ("ChatTTS" ))
@@ -65,9 +66,7 @@ def main(texts: List[str],
65
66
66
67
is_load = False
67
68
if os .path .isdir (custom_path ) and source == "custom" :
68
- is_load = chat .load (compile = True ,
69
- source = "custom" ,
70
- custom_path = custom_path )
69
+ is_load = chat .load (compile = True , source = "custom" , custom_path = custom_path )
71
70
else :
72
71
is_load = chat .load (compile = True , source = source )
73
72
You can’t perform that action at this time.
0 commit comments