VGGishBundle.VGGishInputProcessor¶
- 類 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)。
- 返回型別: