Searched refs:kMaxAudioSampleSize (Results 1 – 9 of 9) sorted by relevance
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/ |
A D | simple_features_generator.cc | 80 if (input_size > kMaxAudioSampleSize) { in GenerateSimpleFeatures() 82 input_size, kMaxAudioSampleSize); in GenerateSimpleFeatures() 95 float window_function[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 100 float float_input[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 101 for (int i = 0; i < kMaxAudioSampleSize; ++i) { in GenerateSimpleFeatures() 111 float fourier_values[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 112 CalculateDiscreteFourierTransform(float_input, kMaxAudioSampleSize, in GenerateSimpleFeatures() 118 float power_spectrum[kMaxAudioSampleSize / 2]; in GenerateSimpleFeatures() 119 for (int i = 0; i < (kMaxAudioSampleSize / 2); ++i) { in GenerateSimpleFeatures() 131 if (index < (kMaxAudioSampleSize / 2)) { in GenerateSimpleFeatures()
|
A D | simple_model_settings.h | 25 constexpr int kMaxAudioSampleSize = 512; variable 32 ((kMaxAudioSampleSize / 2) + (kAverageWindowSize - 1)) / kAverageWindowSize;
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/fixed_point/ |
A D | simple_features_generator.cc | 125 if (input_size > kMaxAudioSampleSize) { in GenerateSimpleFeatures() 127 input_size, kMaxAudioSampleSize); in GenerateSimpleFeatures() 141 int16_t window_function[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 146 int32_t fixed_input[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 147 for (int i = 0; i < kMaxAudioSampleSize; ++i) { in GenerateSimpleFeatures() 159 int32_t fourier_values[kMaxAudioSampleSize]; in GenerateSimpleFeatures() 160 CalculateDiscreteFourierTransform(fixed_input, kMaxAudioSampleSize, in GenerateSimpleFeatures() 166 int32_t power_spectrum[kMaxAudioSampleSize / 2]; in GenerateSimpleFeatures() 167 for (int i = 0; i < (kMaxAudioSampleSize / 2); ++i) { in GenerateSimpleFeatures() 183 if (index < (kMaxAudioSampleSize / 2)) { in GenerateSimpleFeatures()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/ |
A D | audio_provider_mock_test.cc | 37 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST() 47 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST() 58 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST() 68 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST()
|
A D | audio_provider_mock.cc | 22 int16_t g_dummy_audio_data[kMaxAudioSampleSize]; 35 for (int i = 0; i < kMaxAudioSampleSize; ++i) { in GetAudioSamples() 47 *audio_samples_size = kMaxAudioSampleSize; in GetAudioSamples()
|
A D | feature_provider.cc | 108 if (audio_samples_size < kMaxAudioSampleSize) { in PopulateFeatureData() 111 audio_samples_size, kMaxAudioSampleSize); in PopulateFeatureData()
|
A D | audio_provider_test.cc | 36 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST()
|
A D | audio_provider.cc | 55 int16_t g_output_audio_data[kMaxAudioSampleSize]; 343 *audio_samples_size = kMaxAudioSampleSize; in GetAudioSamples()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/micro_features/ |
A D | micro_model_settings.h | 25 constexpr int kMaxAudioSampleSize = 512; variable
|
Completed in 8 milliseconds