{
#endif
-#define MAX_WAKEUP_LIST_NUM 32
-#define MAX_SUPPORTED_LANGUAGE_NUM 128
-
/**************************************************************************************
*** Definitions for xml file
*************************************************************************************/
const char* app_id;
const char* name;
const char* icon_path;
- const char* wakeup_list[MAX_WAKEUP_LIST_NUM];
- const char* wakeup_language[MAX_WAKEUP_LIST_NUM];
+ const char* wakeup_list[MAX_WAKEUP_WORDS_NUM];
+ const char* wakeup_language[MAX_WAKEUP_WORDS_NUM];
int cnt_wakeup;
- const char* supported_lang[MAX_SUPPORTED_LANGUAGE_NUM];
+ const char* supported_lang[MAX_SUPPORTED_LANGUAGES_NUM];
int cnt_lang;
const char* wakeup_engine;
bool custom_ui_option;
bool mVoiceKeyPressed{false};
string mCurrentLanguage;
string mCurrentDefaultAssistant;
- VOICE_KEY_SUPPORT_MODE mCurrentVoiceKeySupportMode;
+ /* Assume Push-to-talk is the default mode */
+ VOICE_KEY_SUPPORT_MODE mCurrentVoiceKeySupportMode{VOICE_KEY_SUPPORT_MODE_PUSH_TO_TALK};
STREAMING_MODE mStreamingMode{STREAMING_MODE::NONE};
Ecore_Timer* mStreamingDurationTimer{nullptr};
} // wakeup
} // multiassistant
-#endif /* _WAKEUP_MANAGER_H_ */
\ No newline at end of file
+#endif /* _WAKEUP_MANAGER_H_ */
MA_VOICE_KEY_STATUS_RELEASED_AFTER_TAP == status) {
mVoiceKeyPressed = false;
}
+ return true;
}
bool CWakeupManager::process_plugin_event(mas_plugin_event_e event, void* data, int len)
}
}
}
- for (inner_loop = 0; inner_loop < MAX_SUPPORTED_LANGUAGE_NUM; inner_loop++) {
+ for (inner_loop = 0; inner_loop < MAX_SUPPORTED_LANGUAGES_NUM; inner_loop++) {
if (mClientInfo[loop].supported_language[inner_loop] &&
0 < strlen(mClientInfo[loop].supported_language[inner_loop])) {
MAS_LOGD("Adding language %s for app %s",