kaldi__get_num_lr_output_samples: Linear Resample Output Samples

View source: R/kaldi.R

kaldi__get_num_lr_output_samplesR 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


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