diff --git a/tests/test_demo_server.py b/tests/test_demo_server.py index 80c774e8..5eb3c01c 100644 --- a/tests/test_demo_server.py +++ b/tests/test_demo_server.py @@ -20,5 +20,6 @@ class DemoServerTest(unittest.TestCase): def test_in_out(self): self._create_random_model() config = load_config(os.path.join(get_tests_input_path(), 'server_config.json')) + config['tts_path'] = get_tests_output_path() synthesizer = Synthesizer(config) synthesizer.tts("Better this test works!!") diff --git a/utils/visual.py b/utils/visual.py index 825caf52..ab513666 100644 --- a/utils/visual.py +++ b/utils/visual.py @@ -32,7 +32,7 @@ def plot_spectrogram(linear_output, audio, fig_size=(16, 10)): linear_output_ = linear_output.detach().cpu().numpy().squeeze() else: linear_output_ = linear_output - spectrogram = audio._denormalize(linear_output_) + spectrogram = audio._denormalize(linear_output_) # pylint: disable=protected-access fig = plt.figure(figsize=fig_size) plt.imshow(spectrogram.T, aspect="auto", origin="lower") plt.colorbar()