-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f844407
commit 3d6fb66
Showing
47 changed files
with
42,007 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
BUILD* | ||
*.dat | ||
nntool_script | ||
*_emul | ||
samples/speech_dataset | ||
*__pycache__* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
#define SAMPLERATE 16000 | ||
#define PREEMP_FACTOR 0.0 | ||
#define FRAME_SIZE 640 | ||
#define FRAME_STEP 320 | ||
#define N_FRAME 49 | ||
#define N_FFT 1024 | ||
#define USE_RADIX_4 0 | ||
#define DATA_TYPE 0 | ||
#define USE_POWER 1 | ||
#define OUT_FFT 0 | ||
#define MFCC_BANK_CNT 40 | ||
#define FMIN 20.0 | ||
#define FMAX 4000.0 | ||
#define MFCC_COEFF_CNT 494 | ||
#define N_DCT 40 | ||
#define OUTPUT_MELSPECTROGRAM 0 | ||
#define LIFTER_COEFF 0 | ||
#define USE_DB 0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,27 @@ | ||
#include "AutoTilerLib.h" | ||
#include "AutoTilerLibTypes.h" | ||
#include "MfccGenerator.h" | ||
#ifdef SMALL | ||
#include "MFCC_params_SMALL.h" | ||
#endif | ||
#ifdef MEDIUM | ||
#include "MFCC_params_MEDIUM.h" | ||
#endif | ||
#ifdef LARGE | ||
#include "MFCC_params_LARGE.h" | ||
#endif | ||
|
||
#include "DSP_Generators.h" | ||
#include "MFCC_params.h" | ||
|
||
void MFCCConfiguration(unsigned int L1Memory) | ||
{ | ||
SetInlineMode(ALWAYS_INLINE); | ||
SetSymbolDynamics(); | ||
SetSymbolDynamics(); | ||
|
||
SetUsedFilesNames(0, 1, "MfccBasicKernels.h"); | ||
SetUsedFilesNames(0, 3, "MfccBasicKernels.h", "CmplxFunctions.h", "PreProcessing.h"); | ||
SetGeneratedFilesNames("MFCCKernels.c", "MFCCKernels.h"); | ||
|
||
SetL1MemorySize(L1Memory); | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
if (TilerParseOptions(argc, argv)) GenTilingError("Failed to initialize or incorrect output arguments directory.\n"); | ||
if (TilerParseOptions(argc, argv)) GenTilingError("Failed to initialize or incorrect output arguments directory.\n"); | ||
|
||
// Set Auto Tiler configuration, given shared L1 memory is 51200 | ||
MFCCConfiguration(51200); | ||
MFCCConfiguration(64*1024); | ||
// Load FIR basic kernels | ||
LoadMFCCLibrary(); | ||
MFCC_Generator("MFCC", 0, N_FRAME, FRAME_SIZE, FRAME_STEP, N_FFT, MFCC_COEFF_CNT, N_DCT, PREEMP_FACTOR, LIFTER_COEFF, USE_RADIX_4, USE_POWER, DATA_TYPE, MFCC_BANK_CNT, 0, 0); | ||
//MFCC_Generator("MFCC_single", 0, 1, FRAME_SIZE, FRAME_STEP, N_FFT, MFCC_COEFF_CNT, N_DCT, PREEMP_FACTOR, LIFTER_COEFF, USE_RADIX_4, USE_POWER, DATA_TYPE, MFCC_BANK_CNT, 0, 0); | ||
MFCC_Generator("MFCC", 0, 49, FRAME_SIZE, FRAME_STEP, N_FFT, MFCC_BANK_CNT, MFCC_COEFF_CNT, N_DCT, 0, 0, 0, USE_POWER, DATA_TYPE, 1, 0); | ||
GenerateTilingCode(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"n_fft": 1024, | ||
"frame_size": 640, | ||
"frame_step": 320, | ||
"sample_rate": 16000, | ||
"mfcc_bank_cnt": 40, | ||
"n_dct": 40, | ||
"fmin": 20.0, | ||
"fmax": 4000.0, | ||
"dtype": "fix16", | ||
"use_tf_mfcc": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"n_fft": 1024, | ||
"frame_size": 640, | ||
"frame_step": 320, | ||
"sample_rate": 16000, | ||
"mfcc_bank_cnt": 40, | ||
"n_dct": 40, | ||
"fmin": 20.0, | ||
"fmax": 4000.0, | ||
"dtype": "fix32_scal", | ||
"use_tf_mfcc": true | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.