bug fix for python/tts_engine.py librosa.resample when librosa >=0.9.0

pull/4082/head
Tian, Zerui 3 months ago
parent 563217abb0
commit 6cc70a66b3

@ -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