#define _MULTI_WAKEUP_RECOGNIZER_H_
#include <dlog/dlog.h>
-#include <multi_assistant.h>
#ifdef __cplusplus
extern "C" {
WAKEUP_ASR_RESULT_EVENT_ERROR /**< Event when the recognition has failed */
} wakeup_asr_result_event_e;
+typedef enum {
+ MA_AUDIO_STREAMING_DATA_TYPE_CURRENT_UTTERANCE = 0, /**< Current utterance */
+ MA_AUDIO_STREAMING_DATA_TYPE_PREVIOUS_UTTERANCE, /**< Previous utterance */
+ MA_AUDIO_STREAMING_DATA_TYPE_FOLLOW_UP_SPEECH /**< Follow-up speech */
+} ma_audio_streaming_data_type_e;
+
+typedef enum {
+ MA_ACTIVE_STATE_INACTIVE = 0, /**< 'Inactive' state */
+ MA_ACTIVE_STATE_ACTIVE, /**< 'Active' state */
+ MA_ACTIVE_STATE_PREPROCESSING, /**< 'Preprocessing' state */
+} ma_active_state_e;
+
+typedef enum {
+ MA_RECOGNITION_RESULT_EVENT_SUCCESS = 0, /**< Recognition succeeded */
+ MA_RECOGNITION_RESULT_EVENT_EMPTY_TEXT, /**< No text result recognized */
+ MA_RECOGNITION_RESULT_EVENT_ERROR, /**< Unknown error occurred */
+ MA_RECOGNITION_RESULT_EVENT_FALSE_TRIGGER /**< Turned out to be a false trigger */
+} ma_recognition_result_event_e;
+
+typedef enum {
+ MA_PREPROCESSING_ALLOW_NONE = 0, /**< No preprocessing allowed */
+ MA_PREPROCESSING_ALLOW_UTTERANCE, /**< Preprocessing allowed for utterance audio only */
+ MA_PREPROCESSING_ALLOW_FOLLOW_UP, /**< Preprocessing allowed for follow-up audio only */
+ MA_PREPROCESSING_ALLOW_ALL, /**< Preprocessing allowed for all audio */
+} ma_preprocessing_allow_mode_e;
+
+typedef enum {
+ MA_AUDIO_STREAMING_DATA_SECTION_UTTERANCE = 0, /**< Utterance section started */
+ MA_AUDIO_STREAMING_DATA_SECTION_WAKE_WORD, /**< Wake word section started */
+} ma_audio_streaming_data_section_e;
+
+typedef void (*ma_audio_streaming_data_section_changed_cb)(ma_audio_streaming_data_section_e section, void* user_data);
typedef void (*wakeup_service_wakeup_event_cb)(wakeup_event_info wakeup_info, const char* wakeup_word, void* user_data);
#include <stdbool.h>
#include <tizen.h>
#include <tzplatform_config.h>
-#include <multi_assistant.h>
#include "wakeup_interfaces.h"
WAKEUP_MANAGER_STATE_VOICE_FEEDBACK = 4
} wakeup_manager_state_e;
+typedef enum {
+ MA_PREPROCESSING_ALLOW_NONE = 0, /**< No preprocessing allowed */
+ MA_PREPROCESSING_ALLOW_UTTERANCE, /**< Preprocessing allowed for utterance audio only */
+ MA_PREPROCESSING_ALLOW_FOLLOW_UP, /**< Preprocessing allowed for follow-up audio only */
+ MA_PREPROCESSING_ALLOW_ALL, /**< Preprocessing allowed for all audio */
+} ma_preprocessing_allow_mode_e;
+
+typedef enum {
+ MA_AUDIO_STREAMING_DATA_SECTION_UTTERANCE = 0, /**< Utterance section started */
+ MA_AUDIO_STREAMING_DATA_SECTION_WAKE_WORD, /**< Wake word section started */
+} ma_audio_streaming_data_section_e;
+
+typedef void (*ma_audio_streaming_data_section_changed_cb)(ma_audio_streaming_data_section_e section, void* user_data);
+
typedef void (*wakeup_service_wakeup_event_cb)(wakeup_event_info wakeup_info, void* user_data);
typedef void (*wakeup_service_speech_streaming_cb)(wakeup_speech_streaming_event_e event, void* buffer, int len, void *user_data);