diff --git a/TTS/vocoder/datasets/preprocess.py b/TTS/vocoder/datasets/preprocess.py index 62bd4ba5..91dad459 100644 --- a/TTS/vocoder/datasets/preprocess.py +++ b/TTS/vocoder/datasets/preprocess.py @@ -30,7 +30,7 @@ def preprocess_wav_files(out_path: str, config: Coqpit, ap: AudioProcessor): np.save(mel_path, mel) if isinstance(config.mode, int): quant = ( - ap.mulaw_encode(y, qc=config.mode) if config.model_params.mulaw else ap.quantize(y, bits=config.mode) + ap.mulaw_encode(y, qc=config.mode) if config.model_args.mulaw else ap.quantize(y, bits=config.mode) ) np.save(quant_path, quant)