diff --git a/server/synthesizer.py b/server/synthesizer.py index b703c62e..63f2080a 100644 --- a/server/synthesizer.py +++ b/server/synthesizer.py @@ -1,5 +1,4 @@ import io -import os import re import sys @@ -101,7 +100,6 @@ class Synthesizer(object): def load_pwgan(self, lib_path, model_file, model_config, use_cuda): sys.path.append(lib_path) # set this if TTS is not installed globally from parallel_wavegan.models import ParallelWaveGANGenerator - from parallel_wavegan.utils.audio import AudioProcessor as AudioProcessorVocoder print(" > Loading PWGAN model ...") print(" | > model config: ", model_config) print(" | > model file: ", model_file) diff --git a/tests/inputs/server_config.json b/tests/inputs/server_config.json index 3988db4c..7f5a60fb 100644 --- a/tests/inputs/server_config.json +++ b/tests/inputs/server_config.json @@ -3,9 +3,11 @@ "tts_config":"dummy_model_config.json", // tts config.json file "tts_speakers": null, // json file listing speaker ids. null if no speaker embedding. "wavernn_lib_path": null, // Rootpath to wavernn project folder to be imported. If this is null, model uses GL for speech synthesis. - "wavernn_path": null, // wavernn model root path "wavernn_file": null, // wavernn checkpoint file name "wavernn_config": null, // wavernn config file + "pwgan_lib_path": null, + "pwgan_file": null, + "pwgan_config": null, "is_wavernn_batched":true, "port": 5002, "use_cuda": false,