Skip to main content

gfcc

Function gfcc 

Source
pub fn gfcc(
    power_spectrum: &[f32],
    erb_weights: &[f32],
    n_bands: usize,
    n_coeffs: usize,
    out: &mut [f32],
    scratch: &mut [f32],
) -> Result<(), AudioError>
Expand description

Compute the first n_coeffs gammatone cepstral coefficients of one power-spectrum frame. erb_weights is an n_bands × n_fft_bins bank from super::erb_bank::build_erb_bank. See super::mfcc::mfcc for buffer requirements (out ≥ n_coeffs, scratch ≥ 2 * n_bands).