快捷鍵

torchaudio.functional.gain

torchaudio.functional.gain(waveform: Tensor, gain_db: float = 1.0) Tensor[原始碼]

對整個波形應用放大或衰減。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
參數:
  • waveform (Tensor) – 音訊張量,維度為 (…, 時間)。

  • gain_db (float, optional) 以分貝 (dB) 為單位的增益調整 (dB) – 1.0)。

回傳:

整個波形依 gain_db 放大。

回傳類型:

Tensor

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

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

查看教學

資源

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

查看資源