Home
last modified time | relevance | path

Searched refs:kMaxAudioSampleSize (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/
A Dsimple_features_generator.cc80 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 Dsimple_model_settings.h25 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 Dsimple_features_generator.cc125 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 Daudio_provider_mock_test.cc37 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 Daudio_provider_mock.cc22 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 Dfeature_provider.cc108 if (audio_samples_size < kMaxAudioSampleSize) { in PopulateFeatureData()
111 audio_samples_size, kMaxAudioSampleSize); in PopulateFeatureData()
A Daudio_provider_test.cc36 TF_LITE_MICRO_EXPECT_LE(audio_samples_size, kMaxAudioSampleSize); in TF_LITE_MICRO_TEST()
A Daudio_provider.cc55 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 Dmicro_model_settings.h25 constexpr int kMaxAudioSampleSize = 512; variable

Completed in 8 milliseconds