快捷方式

torchaudio.functional.contrast

torchaudio.functional.contrast(waveform: Tensor, enhancement_amount: float = 75.0) Tensor[原始碼]

應用對比度效果。類似於 SoX 實現。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript

類似於壓縮,此效果會修改音訊訊號,使其聽起來更響亮

引數:
  • waveform (Tensor) – 維度為 (…, time) 的音訊波形

  • enhancement_amount (float, optional) – 控制增強的量。 enhancement_amount 的允許值範圍:0-100。請注意,enhancement_amount = 0 仍然會產生顯著的對比度增強。

返回:

維度為 (…, time) 的波形

返回型別:

Tensor

參考文獻

文件

訪問 PyTorch 詳細的開發者文件

檢視文件

教程

獲取適合初學者和高階開發者的深入教程

檢視教程

資源

查詢開發資源並解答疑問

檢視資源