cdactvm commited on
Commit
6fa4bac
·
verified ·
1 Parent(s): ccf12e0

Update highPassFilter.py

Browse files
Files changed (1) hide show
  1. highPassFilter.py +1 -0
highPassFilter.py CHANGED
@@ -1,4 +1,5 @@
1
  # Function to apply a high-pass filter
 
2
  def high_pass_filter(audio, sr, cutoff=300):
3
  nyquist = 0.5 * sr
4
  normal_cutoff = cutoff / nyquist
 
1
  # Function to apply a high-pass filter
2
+ from scipy.signal import butter
3
  def high_pass_filter(audio, sr, cutoff=300):
4
  nyquist = 0.5 * sr
5
  normal_cutoff = cutoff / nyquist