From 4741dc5b82563403db43546a1ee49ddcf0ebd1c8 Mon Sep 17 00:00:00 2001 From: Hiroshiba Kazuyuki Date: Wed, 21 Feb 2018 17:15:37 +0900 Subject: [PATCH] MFCCAligner -> MelCepstrumAligner --- become_yukarin/dataset/utility.py | 2 +- scripts/extract_acoustic_feature.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/become_yukarin/dataset/utility.py b/become_yukarin/dataset/utility.py index 7a97967..4e65e4b 100644 --- a/become_yukarin/dataset/utility.py +++ b/become_yukarin/dataset/utility.py @@ -107,7 +107,7 @@ def _interp_path(normed_path: numpy.ndarray, target_length: int): return path -class MFCCAligner(DTWAligner): +class MelCepstrumAligner(DTWAligner): def __init__(self, x, y, *args, **kwargs) -> None: x = self._calc_aligner_feature(x) y = self._calc_aligner_feature(y) diff --git a/scripts/extract_acoustic_feature.py b/scripts/extract_acoustic_feature.py index 7015f2a..c2c9b91 100644 --- a/scripts/extract_acoustic_feature.py +++ b/scripts/extract_acoustic_feature.py @@ -16,7 +16,7 @@ from become_yukarin.dataset.dataset import AcousticFeatureProcess from become_yukarin.dataset.dataset import AcousticFeatureSaveProcess from become_yukarin.dataset.dataset import WaveFileLoadProcess -from become_yukarin.dataset.utility import MFCCAligner +from become_yukarin.dataset.utility import MelCepstrumAligner from become_yukarin.param import AcousticFeatureParam from become_yukarin.param import VoiceParam @@ -99,7 +99,7 @@ def generate_feature(path1, path2): # alignment if not arguments.disable_alignment: - aligner = MFCCAligner(f1_ref.mfcc, f2.mfcc) + aligner = MelCepstrumAligner(f1_ref.mfcc, f2.mfcc) f0_1, f0_2 = aligner.align(f1.f0, f2.f0) spectrogram_1, spectrogram_2 = aligner.align(f1.spectrogram, f2.spectrogram)