kaldi__get_num_lr_output_samples {torchaudio} | R Documentation |
Linear Resample Output Samples
Description
Based on LinearResample::GetNumOutputSamples. LinearResample (LR) means that
the output signal is at linearly spaced intervals (i.e the output signal has a
frequency of new_freq
). It uses sinc/bandlimited interpolation to upsample/downsample
the signal.
Usage
kaldi__get_num_lr_output_samples(input_num_samp, samp_rate_in, samp_rate_out)
Arguments
input_num_samp |
(int): The number of samples in the input |
samp_rate_in |
(float): The original frequency of the signal |
samp_rate_out |
(float): The desired frequency |
Value
int: The number of output samples
[Package torchaudio version 0.3.1 Index]