Skip to content

Commit

Permalink
MFCCAligner -> MelCepstrumAligner
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Feb 21, 2018
1 parent 348834f commit 4741dc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion become_yukarin/dataset/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions scripts/extract_acoustic_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4741dc5

Please sign in to comment.