(self, input, eps=0.)
| 77 | pass |
| 78 | |
| 79 | def spectrogram(self, input, eps=0.): |
| 80 | (real, imag) = self.stft(input) |
| 81 | return torch.clamp(real ** 2 + imag ** 2, eps, np.inf) ** 0.5 |
| 82 | |
| 83 | def spectrogram_phase(self, input, eps=0.): |
| 84 | (real, imag) = self.stft(input) |