diff --git a/paddlespeech/t2s/exps/inference.py b/paddlespeech/t2s/exps/inference.py index 3732e0f406c5926670310326c4727e26febf208b..7efbd8aa584bc85fd3712aa384840279f65508d6 100644 --- a/paddlespeech/t2s/exps/inference.py +++ b/paddlespeech/t2s/exps/inference.py @@ -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}." )