mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
add gst style dict suport in synthesize
This commit is contained in:
@@ -155,7 +155,11 @@ if __name__ == "__main__":
|
||||
if args.gst_style is None:
|
||||
gst_style = C.gst['gst_style_input']
|
||||
else:
|
||||
gst_style = args.gst_style
|
||||
# check if gst_style string is a dict, if is dict convert else use string
|
||||
try:
|
||||
gst_style = json.loads(args.gst_style)
|
||||
except:
|
||||
gst_style = args.gst_style
|
||||
|
||||
wav = tts(model, vocoder_model, args.text, C, args.use_cuda, ap, use_griffin_lim, args.speaker_fileid, speaker_embedding=speaker_embedding, gst_style=gst_style)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user