STM32_AI_AudioPreprocessing_Library
|
This file has common tables like fft windows, melfilterbanks, dct matrix etc which are used across different functions. More...
#include "common_tables.h"
Variables | |
const float32_t | hannWin_1024 [1024] |
Hann Window. | |
const float32_t | hannWin_2048 [2048] |
Hann Window. | |
const float32_t | hammingWin_1024 [1024] |
Hamming Window. | |
const float32_t | blackmanWin_1024 [1024] |
Blackman Window. | |
const uint32_t | melFiltersStartIndices_1024_30 [30] |
Mel filter start indices for a 1024 points power spectrum slice with 30 mel bands. | |
const uint32_t | melFiltersStopIndices_1024_30 [30] |
Mel filter stop indices for a 1024 points power spectrum slice with 30 mel bands. | |
const float32_t | melFilterLut_1024_30 [968] |
Mel filter weights for a 1024 points power spectrum slice with 30 mel bands. | |
const uint32_t | melFiltersStartIndices_2048_128 [128] |
Mel filter start indices for a 2048 points power spectrum slice with 128 mel bands. | |
const uint32_t | melFiltersStopIndices_2048_128 [128] |
Mel filter stop indices for a 2048 points power spectrum slice with 128 mel bands. | |
const float32_t | melFilterLut_2048_128 [2020] |
Mel filter weights for a 2048 points power spectrum slice with 128 mel bands. | |
This file has common tables like fft windows, melfilterbanks, dct matrix etc which are used across different functions.
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.
const float32_t blackmanWin_1024[1024] |
Blackman Window.
for(i = 0; i < N; i++) { hannWin[i]= 0.42 - 0.5 * cos(2 * i * PI / (float) N) + 0.8 * cos(2 * i * PI / (float) N); }
const float32_t hammingWin_1024[1024] |
Hamming Window.
for(i = 0; i < N; i++) { hannWin[i]= 0.54 - 0.46 * cos(2 * i * PI / (float) N); }
const float32_t hannWin_1024[1024] |
Hann Window.
for(i = 0; i < N; i++) { hannWin[i]= 0.5 - 0.5 * cos(2 * i * PI / (float) N); }
const float32_t hannWin_2048[2048] |
Hann Window.
for(i = 0; i < N; i++) { hannWin[i]= 0.5 - 0.5 * cos(2 * i * PI / (float) N); }
const uint32_t melFiltersStartIndices_1024_30[30] |
Mel filter start indices for a 1024 points power spectrum slice with 30 mel bands.
const uint32_t melFiltersStartIndices_2048_128[128] |
Mel filter start indices for a 2048 points power spectrum slice with 128 mel bands.
const uint32_t melFiltersStopIndices_1024_30[30] |
Mel filter stop indices for a 1024 points power spectrum slice with 30 mel bands.
const uint32_t melFiltersStopIndices_2048_128[128] |
Mel filter stop indices for a 2048 points power spectrum slice with 128 mel bands.