Resample a signal from one frequency to another. A resampling method can be given.

transform_resample(
  orig_freq = 16000,
  new_freq = 16000,
  resampling_method = "sinc_interpolation"
)

Arguments

orig_freq

(float, optional): The original frequency of the signal. (Default: 16000)

new_freq

(float, optional): The desired frequency. (Default: 16000)

resampling_method

(str, optional): The resampling method. (Default: 'sinc_interpolation')

Value

Tensor: Output signal of dimension (..., time).

Details

forward param: waveform (Tensor): Tensor of audio of dimension (..., time).