bugfix-librosa.resample-args (#4088)

pull/4090/head
pinkman 2 months ago committed by GitHub
parent 78a952a66e
commit f032b3811a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -147,7 +147,7 @@ class PaddleTTSConnectionHandler(TTSServerExecutor):
format(original_fs))
else:
wav_tar_fs = librosa.resample(
np.squeeze(wav), original_fs, target_fs)
np.squeeze(wav), orig_sr=original_fs, target_sr=target_fs)
logger.debug(
"The sample rate of model is {}Hz and the target sample rate is {}Hz. Converting the sample rate of the synthesized audio successfully.".
format(original_fs, target_fs))

Loading…
Cancel
Save