Fix warning

This commit is contained in:
kris 2023-01-17 21:09:34 +00:00
parent b1132e97f1
commit efe821d215
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class Audio:
'float32').reshape((f.channels, -1), order='F')
a = librosa.core.to_mono(data)
a = librosa.resample(a, f.samplerate,
self.sample_rate,
a = librosa.resample(a, orig_sr=f.samplerate,
target_sr=self.sample_rate,
res_type='scipy', scale=True).flatten()
return a