(config_path)
| 32 | return torch.from_numpy(audio), samplerate |
| 33 | |
| 34 | def get_config(config_path): |
| 35 | with open(config_path) as f: |
| 36 | config = ConfigDict(yaml.load(f, Loader=yaml.FullLoader)) |
| 37 | return config |
| 38 | |
| 39 | def _getWindowingArray(window_size, fade_size): |
| 40 | fadein = torch.linspace(1, 1, fade_size) |