Update highPassFilter.py
Browse files- highPassFilter.py +1 -9
highPassFilter.py
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
# coding: utf-8
|
| 3 |
-
|
| 4 |
-
# In[2]:
|
| 5 |
-
|
| 6 |
|
| 7 |
import scipy.signal
|
| 8 |
|
|
@@ -35,7 +31,3 @@ def high_pass_filter(audio, sr, cutoff=300):
|
|
| 35 |
b, a = butter(1, normal_cutoff, btype='high', analog=False)
|
| 36 |
filtered_audio = lfilter(b, a, audio)
|
| 37 |
return filtered_audio
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
| 1 |
+
from scipy.signal import butter, lfilter
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
import scipy.signal
|
| 4 |
|
|
|
|
| 31 |
b, a = butter(1, normal_cutoff, btype='high', analog=False)
|
| 32 |
filtered_audio = lfilter(b, a, audio)
|
| 33 |
return filtered_audio
|
|
|
|
|
|
|
|
|
|
|
|