快速連結

torchaudio.functional.flanger

torchaudio.functional.flanger(waveform: Tensor, sample_rate: int, delay: float = 0.0, depth: float = 2.0, regen: float = 0.0, width: float = 71.0, speed: float = 0.5, phase: float = 25.0, modulation: str = 'sinusoidal', interpolation: str = 'linear') Tensor[原始碼]

對音訊套用鑲邊效果。類似於 SoX 實作。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
參數:
  • waveform (Tensor) – 音訊波形,維度為 (…, channel, time) 。最多允許 4 個聲道

  • sample_rate (int) – 波形的取樣率,例如 44100 (Hz)

  • delay (float, optional) – 期望的延遲時間,單位為毫秒 (ms)。允許的值範圍為 0 到 30

  • depth (float, optional) – 期望的延遲深度,單位為毫秒 (ms)。允許的值範圍為 0 到 10

  • regen (float, optional) – 期望的再生 (回饋增益),單位為 dB。允許的值範圍為 -95 到 95

  • width (float, optional) – 期望的寬度 (延遲增益),單位為 dB。允許的值範圍為 0 到 100

  • speed (float, optional) – 調變速度,單位為 Hz。允許的值範圍為 0.1 到 10

  • phase (float, optional) – 多聲道的相位偏移百分比。允許的值範圍為 0 到 100

  • modulation (str, optional) – 使用 “sinusoidal” 或 “triangular” 調變。(預設:sinusoidal

  • interpolation (str, optional) – 對於延遲線插值,使用 “linear” 或 “quadratic”。(預設:linear

返回:

維度為 (…, channel, time) 的波形

返回類型:

Tensor

參考

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

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

查看教學

資源

尋找開發資源並獲得解答

查看資源