From c3d47441cf1466b545a8eba668ff837647f13126 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Thu, 4 Aug 2022 07:52:18 +0000 Subject: [PATCH] fix fs bug in inference.py (change fixed 24000 to variable for ljspeech) --- paddlespeech/t2s/exps/inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/t2s/exps/inference.py b/paddlespeech/t2s/exps/inference.py index 3732e0f4..7efbd8aa 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}." ) -- GitLab