VGGishBundle.VGGishInputProcessor¶
- class torchaudio.prototype.pipelines.VGGishBundle.VGGishInputProcessor¶
將原始波形轉換為範例批次,以用作 VGGish 的輸入。
方法¶
__call__¶
- VGGishInputProcessor.__call__(input: Tensor) Tensor ¶
- 參數:
input (torch.Tensor) – 波形,形狀為 (T,)。
sample_rate (int) – 波形的取樣率,單位為赫茲。
- 返回:
要傳遞給 VGGish 的範例批次,形狀為 (n_example, 1, n_frame, 64)。
- 返回類型: