(self, cwt_spec, mean, std, mel2ph)
| 237 | return x * tgt_nonpadding |
| 238 | |
| 239 | def cwt2f0_norm(self, cwt_spec, mean, std, mel2ph): |
| 240 | f0 = cwt2f0(cwt_spec, mean, std, hparams['cwt_scales']) |
| 241 | f0 = torch.cat( |
| 242 | [f0] + [f0[:, -1:]] * (mel2ph.shape[1] - f0.shape[1]), 1) |
| 243 | f0_norm = norm_f0(f0, None, hparams) |
| 244 | return f0_norm |
| 245 | |
| 246 | def out2mel(self, out): |
| 247 | return out |
no test coverage detected