Buffer Sizes for MFCC

int32_t riscv_mfcc_tmp_buffer_size(riscv_math_datatype dt, uint32_t nb_samples, uint32_t buf_id, uint32_t use_cfft)
group Buffer Sizes for MFCC

end of RFFTBuffers group

Functions

int32_t riscv_mfcc_tmp_buffer_size(riscv_math_datatype dt, uint32_t nb_samples, uint32_t buf_id, uint32_t use_cfft)

Calculate required length for the temporary buffer.

Note

0 means not applicable (temporary buffer not needed)

Note

-1 means error : configuration not supported

Note

The define RISCV_MFCC_USE_CFFT can be checked to know the current MFCC mode (CFFT or RFFT) for the build

Parameters:
  • dt[in] Data type of the input data

  • nb_samples[in] Number of samples in the input data

  • buf_id[in] Identification for the temporary buffer

  • use_cfft[in] 1 if implementastion uses CFFT, 0 if RFFT

Returns:

Length in datatype elements (real numbers) for the temporary buffer