mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-12-22 12:29:31 +00:00
Try resampling with scipy and scaling audio power
This commit is contained in:
parent
326ca62075
commit
ce3bed0d38
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user