Skip to content

Commit

Permalink
Dataset preprocessing
Browse files Browse the repository at this point in the history
ㄴ debugging
  • Loading branch information
Yeongtae committed Jan 16, 2020
1 parent 6e9e789 commit 7b85ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preprocess_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
trim_top_db = 23
skip_len = 14848

def preprocess_audio(file_list, silence_audio_size, pre_emphasis=True):
def preprocess_audio(file_list, silence_audio_size, pre_emphasis=False):
for F in file_list:
f = open(F, encoding='utf-8')
R = f.readlines()
Expand Down Expand Up @@ -74,7 +74,7 @@ def remove_short_audios(file_name):
silence_audio_size = trim_hop_size * args.silence_padding
remove_short_audios = args.remove_short_audios

preprocess_audio(file_list, silence_audio_size)
preprocess_audio(file_list, silence_audio_size, args.pre_emphasis)

if(remove_short_audios):
for f in file_list:
Expand Down

0 comments on commit 7b85ecf

Please sign in to comment.