ComputeDeltas¶ class torchaudio.transforms.ComputeDeltas(win_length: int = 5, mode: str = 'replicate')[source]¶ 计算张量的 delta 系数,通常是频谱图。 有关更多详细信息,请参阅 torchaudio.functional.compute_deltas。 参数 win_length (int, optional) – 用于计算 delta 的窗口长度。(默认为:5) mode (str, optional) – 传递给 padding 的模式参数。(默认为:"replicate") forward(specgram: Tensor) → Tensor[source]¶ 参数 specgram (Tensor) – 形状为 (..., freq, time) 的音频张量。 返回 形状为 (..., freq, time) 的 delta 张量。 返回类型 张量