mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-01-03 11:31:06 +00:00
Fix warning
This commit is contained in:
parent
b1132e97f1
commit
efe821d215
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user