Files
voice_linux/src/config.h
T

31 lines
668 B
C

#ifndef VOICE_CONFIG_H
#define VOICE_CONFIG_H
#include <stddef.h>
typedef struct {
char model_path[512];
char audio_device[256];
char language[32];
char hotkey[64];
int use_gpu;
int sample_rate;
int type_delay_us;
int max_record_seconds;
int always_on;
int always_on_window_ms;
float vad_peak_threshold;
int vad_trigger_ms;
int vad_release_ms;
int vad_preroll_ms;
int vad_min_speech_ms;
int vad_max_speech_ms;
int autotype_enabled;
int filter_bracketed_tags;
} voice_config_t;
void config_set_defaults(voice_config_t *cfg);
int config_load_file(const char *path, voice_config_t *cfg);
#endif