捷徑

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)

返回類型:

torch.Tensor

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

取得初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源