2 * Copyright 2018-2019 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef _MULTI_WAKEUP_RECOGNIZER_H_
19 #define _MULTI_WAKEUP_RECOGNIZER_H_
21 #include <dlog/dlog.h>
23 #include <multi_assistant_common.h>
24 #include <multi_assistant_service.h>
30 typedef void (*wakeup_service_wakeup_event_cb)(mas_wakeup_event_info wakeup_info, const char* wakeup_word, void* user_data);
32 typedef void (*wakeup_service_speech_streaming_cb)(mas_speech_streaming_event_e event, unsigned char* buffer, int len, void *user_data);
34 typedef void (*wakeup_service_speech_status_cb)(mas_speech_status_e status, void *user_data);
36 typedef void (*wakeup_service_setting_changed_cb)(void *user_data);
38 typedef void (*wakeup_service_error_cb)(int error, const char* err_msg, void* user_data);
40 typedef void (*wakeup_service_streaming_section_changed_cb)(ma_audio_streaming_data_section_e section, void* user_data);
42 typedef void (*wakeup_service_wakeup_engine_command_cb)(mas_wakeup_engine_command_target_e target, const char* assistant_name, const char* command, void* user_data);
48 #endif /* _MULTI_WAKEUP_RECOGNIZER_H_ */