VGGishBundle.VGGishInputProcessor¶
- class torchaudio.prototype.pipelines.VGGishBundle.VGGishInputProcessor¶
Converts raw waveforms to batches of examples to use as inputs to VGGish.
Methods¶
__call__¶
- VGGishInputProcessor.__call__(input: Tensor) Tensor ¶
- Parameters:
input (torch.Tensor) – waveform, with shape (T,).
sample_rate (int) – sample rate of waveform in hertz.
- Returns:
batch of examples to pass to VGGish, with shape (n_example, 1, n_frame, 64).
- Return type: