From fc27fb26c74f0707e059da406471a3c9b4a40712 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 21 Mar 2023 05:45:17 -0400 Subject: [PATCH] Fix other script issues --- tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py b/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py index 8a2e4a4..ea87d23 100755 --- a/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py +++ b/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py @@ -91,10 +91,12 @@ pipeline.maybe_load_tacotron_model_to_cache(args.synthesizer_checkpoint_path) # NB: 1000 is the default and is roughly 12 seconds. max_decoder_steps = parse_int_or_default(args.max_decoder_steps, 1000) +input_text = open(args.input_text_filename, 'r').read().strip() + inference_args = { - 'raw_text': args.inference_text, + 'raw_text': input_text, 'use_default_mel_multiply_factor': args.use_default_mel_multiply_factor, - 'maybe_custom_mel_multiply_factor': args.maybe_custom_mel_multiply_factor, + 'maybe_custom_mel_multiply_factor': args.custom_mel_multiply_factor, 'synthesizer_checkpoint_path': args.synthesizer_checkpoint_path, 'vocoder_type': args.vocoder_type, 'text_pipeline_type': args.text_pipeline_type,