Initialize TTS speaker in CLI
This commit is contained in:
parent
14ff5958fa
commit
a5d47c8dbd
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue