Try resampling with scipy and scaling audio power

This commit is contained in:
kris 2019-07-13 14:32:21 +01:00
parent 326ca62075
commit ce3bed0d38
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ class Audio:
a = librosa.core.to_mono(data)
a = librosa.resample(a, f.samplerate,
self.sample_rate).flatten()
self.sample_rate,
res_type='scipy', scale=True).flatten()
return a