transform_resample: Signal Resample

transform_resampleR Documentation

Signal Resample

Description

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

Usage

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')

Details

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

Value

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


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.