transform_resample {torchaudio} | R 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: |
new_freq |
(float, optional): The desired frequency. (Default: |
resampling_method |
(str, optional): The resampling method. (Default: |
Details
forward param: waveform (Tensor): Tensor of audio of dimension (..., time).
Value
Tensor: Output signal of dimension (..., time).
[Package torchaudio version 0.3.1 Index]