From ce07ceeffbd8ed9b1fe0e39f5c62fb3537d9fdaf Mon Sep 17 00:00:00 2001 From: zr_jin Date: Mon, 4 Nov 2024 12:29:38 +0800 Subject: [PATCH] refactored --- egs/ljspeech/TTS/local/audio.py | 1 + egs/ljspeech/TTS/local/compute_fbank_ljspeech.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 egs/ljspeech/TTS/local/audio.py diff --git a/egs/ljspeech/TTS/local/audio.py b/egs/ljspeech/TTS/local/audio.py new file mode 120000 index 000000000..b70d91c92 --- /dev/null +++ b/egs/ljspeech/TTS/local/audio.py @@ -0,0 +1 @@ +../matcha/audio.py \ No newline at end of file diff --git a/egs/ljspeech/TTS/local/compute_fbank_ljspeech.py b/egs/ljspeech/TTS/local/compute_fbank_ljspeech.py index 5152ae675..69f572ae1 100755 --- a/egs/ljspeech/TTS/local/compute_fbank_ljspeech.py +++ b/egs/ljspeech/TTS/local/compute_fbank_ljspeech.py @@ -33,12 +33,12 @@ from typing import Union import numpy as np import torch +from audio import mel_spectrogram from lhotse import CutSet, LilcomChunkyWriter, load_manifest from lhotse.audio import RecordingSet from lhotse.features.base import FeatureExtractor, register_extractor from lhotse.supervision import SupervisionSet from lhotse.utils import Seconds, compute_num_frames -from matcha.audio import mel_spectrogram from icefall.utils import get_executor