Skip to main content

bfcc

Function bfcc 

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

Compute the first n_coeffs Bark cepstral coefficients of one power-spectrum frame. bark_weights is an n_bands × n_fft_bins bank from super::bark_bank::build_bark_bank. See super::mfcc::mfcc for buffer requirements (out ≥ n_coeffs, scratch ≥ 2 * n_bands); the pipeline is bank → ln → orthonormal DCT-II → first n_coeffs.