Skip to content

Commit

Permalink
Try resampling with scipy and scaling audio power
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisKennaway committed Jul 13, 2019
1 parent 326ca62 commit ce3bed0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transcoder/audio.py
Expand Up @@ -39,7 +39,8 @@ def _decode(self, f, buf) -> np.array:

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

Expand Down

0 comments on commit ce3bed0

Please sign in to comment.