Skip to content

Commit f39e9c1

Browse files
authored
Merge pull request #62 from kan-bayashi/IS19TUTORIAL
Minor fix
2 parents 6a90039 + e5be10a commit f39e9c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wavenet_vocoder/bin/feature_extract.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def low_pass_filter(x, fs, cutoff=70, padding=True):
7777
return lpf_x
7878

7979

80-
def convert_continuos_f0(f0):
80+
def convert_to_continuos_f0(f0):
8181
"""CONVERT F0 TO CONTINUOUS F0.
8282
8383
Args:
@@ -177,7 +177,7 @@ def world_feature_extract(wav_list, args):
177177

178178
# extract features
179179
f0, _, _ = feature_extractor.analyze(x)
180-
uv, cont_f0 = convert_continuos_f0(f0)
180+
uv, cont_f0 = convert_to_continuos_f0(f0)
181181
cont_f0_lpf = low_pass_filter(cont_f0, int(1.0 / (args.shiftms * 0.001)), cutoff=20)
182182
codeap = feature_extractor.codeap()
183183
mcep = feature_extractor.mcep(dim=args.mcep_dim, alpha=args.mcep_alpha)
@@ -350,7 +350,7 @@ def main():
350350
logging.info("number of utterances = %d" % len(file_list))
351351

352352
# check directory existence
353-
if not os.path.exists(args.wavdir) and args.highpass_cutoff != 0:
353+
if not os.path.exists(args.wavdir) and args.highpass_cutoff != 0 and args.save_wav:
354354
os.makedirs(args.wavdir)
355355
if not os.path.exists(args.hdf5dir):
356356
os.makedirs(args.hdf5dir)

0 commit comments

Comments
 (0)