mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-08-15 10:27:46 +00:00
Fix warning
This commit is contained in:
@@ -55,8 +55,8 @@ class Audio:
|
|||||||
'float32').reshape((f.channels, -1), order='F')
|
'float32').reshape((f.channels, -1), order='F')
|
||||||
|
|
||||||
a = librosa.core.to_mono(data)
|
a = librosa.core.to_mono(data)
|
||||||
a = librosa.resample(a, f.samplerate,
|
a = librosa.resample(a, orig_sr=f.samplerate,
|
||||||
self.sample_rate,
|
target_sr=self.sample_rate,
|
||||||
res_type='scipy', scale=True).flatten()
|
res_type='scipy', scale=True).flatten()
|
||||||
|
|
||||||
return a
|
return a
|
||||||
|
Reference in New Issue
Block a user