STM32_AI_AudioPreprocessing_Library
Data Structures | Enumerations | Functions
feature_extraction.h File Reference

Header for feature_extraction.c module. More...

#include "arm_math.h"
#include "common_tables.h"
#include "float.h"
#include "dct.h"
#include "mel_filterbank.h"
#include "window.h"
Include dependency graph for feature_extraction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SpectrogramTypeDef
 Instance structure for the floating-point Spectrogram function. More...
 
struct  MelSpectrogramTypeDef
 Instance structure for the floating-point MelSpectrogram function. More...
 
struct  LogMelSpectrogramTypeDef
 Instance structure for the floating-point Log-MelSpectrogram function. More...
 
struct  MfccTypeDef
 Instance structure for the floating-point Mfcc function. More...
 

Enumerations

enum  Spectrogram_TypeTypedef { SPECTRUM_TYPE_MAGNITUDE , SPECTRUM_TYPE_POWER }
 Spectrum types. More...
 
enum  LogMelSpectrogram_ScaleTypedef { LOGMELSPECTROGRAM_SCALE_DB , LOGMELSPECTROGRAM_SCALE_LOG }
 LogMel Spectrum decibel conversion formula. More...
 

Functions

void buf_to_float (int16_t *pInSignal, float32_t *pOutSignal, uint32_t len)
 Convert 16-bit PCM into floating point values.
 
void buf_to_float_normed (int16_t *pInSignal, float32_t *pOutSignal, uint32_t len)
 Convert 16-bit PCM into normalized floating point values.
 
void SpectrogramColumn (SpectrogramTypeDef *S, float32_t *pInSignal, float32_t *pOutCol)
 Power Spectrogram column.
 
void MelSpectrogramColumn (MelSpectrogramTypeDef *S, float32_t *pInSignal, float32_t *pOutCol)
 Mel Spectrogram column.
 
void LogMelSpectrogramColumn (LogMelSpectrogramTypeDef *S, float32_t *pInSignal, float32_t *pOutCol)
 Log-Mel Spectrogram column.
 
void LogMelSpectrogramColumn_q15_Q8 (LogMelSpectrogramTypeDef *S, int16_t *pInSignal, int8_t *pOutCol, int8_t offset, float32_t inv_scale)
 
void MfccColumn (MfccTypeDef *S, float32_t *pInSignal, float32_t *pOutCol)
 Mel-Frequency Cepstral Coefficients (MFCCs) column.
 

Detailed Description

Header for feature_extraction.c module.

Author
MCD Application Team
Attention

Copyright (c) 2023 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.