Skip to content

Commit

Permalink
Update infer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Nov 5, 2024
1 parent 8c6141e commit f9056be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egs/ljspeech/TTS/matcha/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ def infer_dataset(
output["waveform"] = to_waveform(output["mel"], vocoder, denoiser)

sf.write(
file=params.save_wave_dir / f"{cut_ids[i]}_pred.wav",
file=params.save_wav_dir / f"{cut_ids[i]}_pred.wav",
data=output["waveform"],
samplerate=params.sampling_rate,
subtype="PCM_16",
)
sf.write(
file=params.save_wave_dir / f"{cut_ids[i]}_gt.wav",
file=params.save_wav_dir / f"{cut_ids[i]}_gt.wav",
data=audio[i].numpy(),
samplerate=params.sampling_rate,
subtype="PCM_16",
Expand Down

0 comments on commit f9056be

Please sign in to comment.