Shortcuts

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:

torch.Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources