Skip to content

Commit c3d4744

Browse files
committed
fix fs bug in inference.py (change fixed 24000 to variable for ljspeech)
1 parent 8da993b commit c3d4744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlespeech/t2s/exps/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def main():
182182
speed = wav.size / t.elapse
183183
rtf = fs / speed
184184

185-
sf.write(output_dir / (utt_id + ".wav"), wav, samplerate=24000)
185+
sf.write(output_dir / (utt_id + ".wav"), wav, samplerate=fs)
186186
print(
187187
f"{utt_id}, mel: {am_output_data.shape}, wave: {wav.shape}, time: {t.elapse}s, Hz: {speed}, RTF: {rtf}."
188188
)

0 commit comments

Comments
 (0)