fix fs bug in inference.py (change fixed 24000 to variable for ljspeech)

pull/2222/head
TianYuan 2 years ago
parent 8da993bbf8
commit c3d47441cf

@ -182,7 +182,7 @@ def main():
speed = wav.size / t.elapse
rtf = fs / speed
sf.write(output_dir / (utt_id + ".wav"), wav, samplerate=24000)
sf.write(output_dir / (utt_id + ".wav"), wav, samplerate=fs)
print(
f"{utt_id}, mel: {am_output_data.shape}, wave: {wav.shape}, time: {t.elapse}s, Hz: {speed}, RTF: {rtf}."
)

Loading…
Cancel
Save