def _preprocess(self, src_path: str, tgt_path: str): wav_src, mel_src = get_wav_mel(src_path) wav_tgt, _ = get_wav_mel(tgt_path) mel_src = self._preprocess_mel(mel_src) return wav_src, wav_tgt, mel_src
def _preprocess(self, src_path: str, tgt_path: str): _, mel_src = get_wav_mel(src_path) _, mel_tgt = get_wav_mel(tgt_path) mel_src, mel_tgt = self._preprocess_mel(mel_src), self._preprocess_mel(mel_tgt) return mel_src, mel_tgt