Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-101
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sachith Fernando
2020-101
Commits
ae313a10
Commit
ae313a10
authored
Nov 05, 2020
by
LiniEisha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unnecessary parts in noise.py
parent
271d584c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
LectureSummarizingApp/noise.py
LectureSummarizingApp/noise.py
+1
-18
No files found.
LectureSummarizingApp/noise.py
View file @
ae313a10
import
librosa
import
librosa
from
pysndfx
import
AudioEffectsChain
from
pysndfx
import
AudioEffectsChain
import
numpy
as
np
import
math
import
python_speech_features
import
python_speech_features
import
scipy
as
sp
from
scipy
import
signal
import
soundfile
def
read_file
(
file_name
):
def
read_file
(
file_name
):
...
@@ -19,19 +15,6 @@ def read_file(file_name):
...
@@ -19,19 +15,6 @@ def read_file(file_name):
return
y
,
sr
return
y
,
sr
# '''CENTROID'''
#
# def reduce_noise_centroid_s(y, sr):
#
# cent = librosa.feature.spectral_centroid(y=y, sr=sr)
# threshold_h = np.max(cent)
# threshold_l = np.min(cent)
# less_noise = AudioEffectsChain().lowshelf(gain=-12.0, frequency=threshold_l, slope=0.5).highshelf(gain=-12.0, frequency=threshold_h, slope=0.5).limiter(gain=6.0)
# y_cleaned = less_noise(y)
# return y_cleaned
#jijoijij
'''MFCC'''
'''MFCC'''
def
mffc_highshelf
(
y
,
sr
):
def
mffc_highshelf
(
y
,
sr
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment