(path: Path)
| 293 | |
| 294 | |
| 295 | def load_audio(path: Path) -> tuple[int, torch.Tensor]: |
| 296 | waveform, sample_rate = torchaudio.load(str(path)) |
| 297 | return sample_rate, waveform |
| 298 | |
| 299 | |
| 300 | def save_batch_audio(audio: torch.Tensor, output_dir: Path, sample_rate: int) -> list[dict[str, Any]]: |
no test coverage detected