Shortcuts

VGGishBundle.VGGishInputProcessor

class torchaudio.prototype.pipelines.VGGishBundle.VGGishInputProcessor

DEPRECATED

Warning

This class is deprecated from version 2.8. It will be removed in the 2.9 release. This deprecation is part of a large refactoring effort to transition TorchAudio into a maintenance phase. Please see https://github.com/pytorch/audio/issues/3902 for more information.

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