Skip to content

Commit f032b38

Browse files
authored
bugfix-librosa.resample-args (#4088)
1 parent 78a952a commit f032b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlespeech/server/engine/tts/python/tts_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def postprocess(self,
147147
format(original_fs))
148148
else:
149149
wav_tar_fs = librosa.resample(
150-
np.squeeze(wav), original_fs, target_fs)
150+
np.squeeze(wav), orig_sr=original_fs, target_sr=target_fs)
151151
logger.debug(
152152
"The sample rate of model is {}Hz and the target sample rate is {}Hz. Converting the sample rate of the synthesized audio successfully.".
153153
format(original_fs, target_fs))

0 commit comments

Comments
 (0)