audio: Tensor([num_channels, num_samples])
(self, audio: torch.Tensor)
| 469 | return super().__call__(audio) |
| 470 | |
| 471 | def forward(self, audio: torch.Tensor) -> torch.Tensor: |
| 472 | """ |
| 473 | audio: Tensor([num_channels, num_samples]) |
| 474 | """ |
| 475 | mel: torch.Tensor = self.mel_spec(audio) |
| 476 | features = torch.log(torch.clip(mel, min=1e-5)) |
| 477 | return features |
| 478 | |
| 479 | |
| 480 | class ChatTTSProcessor: |
nothing calls this directly
no outgoing calls
no test coverage detected