functional_dither: Dither (functional)

functional_ditherR Documentation

Dither (functional)

Description

Dither increases the perceived dynamic range of audio stored at a particular bit-depth by eliminating nonlinear truncation distortion (i.e. adding minimally perceived noise to mask distortion caused by quantization).

Usage

functional_dither(waveform, density_function = "TPDF", noise_shaping = FALSE)

Arguments

waveform

(Tensor): Tensor of audio of dimension (..., time)

density_function

(str, optional): The density function of a continuous random variable (Default: "TPDF") Options: Triangular Probability Density Function - TPDF Rectangular Probability Density Function - RPDF Gaussian Probability Density Function - GPDF

noise_shaping

(bool, optional): a filtering process that shapes the spectral energy of quantisation error (Default: FALSE)

Value

tensor: waveform dithered


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.