Fix WaveRNN test

This commit is contained in:
Eren Gölge 2021-10-01 10:21:37 +00:00
parent 4dbe7ed0de
commit 21cc0517a3
1 changed files with 1 additions and 1 deletions

View File

@ -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)