diff options
| author | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2018-02-21 17:15:37 +0900 |
|---|---|---|
| committer | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2018-02-21 17:15:37 +0900 |
| commit | 4741dc5b82563403db43546a1ee49ddcf0ebd1c8 (patch) | |
| tree | 695c2f523de5b50fb691c5d26476d319352a292d | |
| parent | 348834f918b6d644ef9809dde0f7205ba5a364f2 (diff) | |
MFCCAligner -> MelCepstrumAligner
| -rw-r--r-- | become_yukarin/dataset/utility.py | 2 | ||||
| -rw-r--r-- | 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 @@ class DTWAligner(object): 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 AcousticFeatureLoadProcess 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) |
