arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
audio_tools::TfLiteConfig Struct Reference

Configuration settings for TfLiteAudioStream. More...

#include <TfLiteAudioStream.h>

Public Member Functions

int audioSampleSize ()
 
int categoryCount ()
 
int featureElementCount ()
 
template<int N>
void setCategories (const char *(&array)[N])
 Defines the labels.
 
int strideSampleSize ()
 

Public Attributes

int32_t average_window_duration_ms = 1000
 
int channels = 1
 
uint8_t detection_threshold = 50
 
float filterbank_lower_band_limit = 125.0
 
float filterbank_upper_band_limit = 7500.0
 
int kFeatureSliceCount = 49
 
int kFeatureSliceDurationMs = 30
 
int kFeatureSliceSize = 40
 
int kFeatureSliceStrideMs = 20
 
int kSlicesToProcess = 2
 
int kTensorArenaSize = 10 * 1024
 
bool log_scale_enable_log = 1
 
uint8_t log_scale_scale_shift = 6
 
int32_t minimum_count = 3
 
const unsigned char * model = nullptr
 
float noise_reduction_even_smoothing = 0.025
 
float noise_reduction_min_signal_remaining = 0.05
 
float noise_reduction_odd_smoothing = 0.06
 
float noise_reduction_smoothing_bits = 10
 
bool pcan_gain_control_enable_pcan = 1
 
float pcan_gain_control_gain_bits = 21
 
float pcan_gain_control_offset = 80.0
 
float pcan_gain_control_strength = 0.95
 
TfLiteReaderreader = nullptr
 
TfLiteAbstractRecognizeCommandsrecognizeCommands =nullptr
 
void(* respondToCommand )(const char *found_command, uint8_t score, bool is_new_command) = nullptr
 
int sample_rate = 16000
 
int32_t suppression_ms = 1500
 
bool useAllOpsResolver = false
 
TfLiteWriterwriter = nullptr
 

Friends

class TfLiteMicroSpeechRecognizeCommands
 

Detailed Description

Configuration settings for TfLiteAudioStream.

Author
Phil Schatzmann

The documentation for this struct was generated from the following file: