STM32_AI_AudioPreprocessing_Library
|
Melspectrogram computation example. More...
#include "feature_extraction.h"
Macros | |
#define | SAMPLE_RATE 16000U /* Input signal sampling rate */ |
#define | FFT_LEN 1024U /* Number of FFT points. Must be greater or equal to FRAME_LEN */ |
#define | FRAME_LEN FFT_LEN /* Window length and then padded with zeros to match FFT_LEN */ |
#define | HOP_LEN 512U /* Number of overlapping samples between successive frames */ |
#define | NUM_MELS 30U /* Number of mel bands */ |
#define | NUM_MEL_COEFS 968U /* Number of mel filter weights. Returned by MelFilterbank_Init */ |
Functions | |
void | Preprocessing_Init (void) |
void | AudioPreprocessing_Run (int16_t *pInSignal, float32_t *pOut, uint32_t signal_len) |
Variables | |
arm_rfft_fast_instance_f32 | S_Rfft |
MelFilterTypeDef | S_MelFilter |
SpectrogramTypeDef | S_Spectr |
MelSpectrogramTypeDef | S_MelSpectr |
LogMelSpectrogramTypeDef | S_LogMelSpectr |
float32_t | pInFrame [FRAME_LEN] |
float32_t | pOutColBuffer [NUM_MELS] |
float32_t | pWindowFuncBuffer [FRAME_LEN] |
float32_t | pSpectrScratchBuffer [FFT_LEN] |
float32_t | pMelFilterCoefs [NUM_MEL_COEFS] |
uint32_t | pMelFilterStartIndices [NUM_MELS] |
uint32_t | pMelFilterStopIndices [NUM_MELS] |
Melspectrogram computation example.
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.