示例#1
0
 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
示例#2
0
文件: model.py 项目: reppy4620/VCon
 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