std::string mCurrentLanguage{"en_US"};
typedef struct {
- bool used;
+ bool used{false};
char appid[MAX_APPID_LEN];
char wakeup_word[MAX_WAKEUP_WORDS_NUM][MAX_WAKEUP_WORD_LEN];
char wakeup_language[MAX_WAKEUP_WORDS_NUM][MAX_SUPPORTED_LANGUAGE_LEN];
char wakeup_engine[MAX_APPID_LEN];
char supported_language[MAX_SUPPORTED_LANGUAGES_NUM][MAX_SUPPORTED_LANGUAGE_LEN];
- bool custom_ui_option;
- VOICE_KEY_SUPPORT_MODE voice_key_support_mode;
- float voice_key_tap_duration;
+ bool custom_ui_option{false};
+ VOICE_KEY_SUPPORT_MODE voice_key_support_mode{VOICE_KEY_SUPPORT_MODE_PUSH_TO_TALK};
+ float voice_key_tap_duration{0.0f};
- ma_preprocessing_allow_mode_e preprocessing_allow_mode;
+ ma_preprocessing_allow_mode_e preprocessing_allow_mode{MA_PREPROCESSING_ALLOW_NONE};
char preprocessing_allow_appid[MAX_APPID_LEN];
boost::optional<std::string> audio_processing_appid;