Initialize TTS speaker in CLI

This commit is contained in:
Michael Hansen 2022-04-21 16:10:10 -04:00
commit a5d47c8dbd

View file

@ -242,12 +242,14 @@ def initialize_tts(state: CommandLineInterfaceState):
noise_scale=args.noise_scale, noise_scale=args.noise_scale,
noise_w=args.noise_w, noise_w=args.noise_w,
voices_directories=args.voices_dir, voices_directories=args.voices_dir,
speaker=args.speaker,
use_cuda=args.cuda, use_cuda=args.cuda,
use_deterministic_compute=args.deterministic, use_deterministic_compute=args.deterministic,
) )
) )
state.tts.voice = args.voice
state.tts.speaker = args.speaker
if args.voices: if args.voices:
# Don't bother with the rest of the initialization # Don't bother with the rest of the initialization
return return