NUGU SDK Linux  1.7.6
dialog_ux_state_aggregator_interface.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #ifndef __DIALOG_UX_STATE_AGGREGATOR_INTERFACE_H__
18 #define __DIALOG_UX_STATE_AGGREGATOR_INTERFACE_H__
19 
20 #include <string>
21 
23 #include <nugu.h>
24 
25 namespace NuguClientKit {
26 
27 using namespace NuguCapability;
28 
44 enum class DialogUXState {
45  Listening,
46  Recognizing,
47  Thinking,
48  Speaking,
49  Idle
50 };
51 
56 public:
57  virtual ~IDialogUXStateAggregatorListener() = default;
58 
66  virtual void onStateChanged(DialogUXState state, bool multi_turn, const ChipsInfo& chips, bool session_active);
67 
72  virtual void onASRResult(const std::string& text);
73 };
74 
75 } // NuguClientKit
76 
81 #endif /* __DIALOG_UX_STATE_AGGREGATOR_INTERFACE_H__ */
IDialogUXStateAggregatorListener interface.
Definition: dialog_ux_state_aggregator_interface.hh:55
virtual void onASRResult(const std::string &text)
Receive ASR result.
virtual void onStateChanged(DialogUXState state, bool multi_turn, const ChipsInfo &chips, bool session_active)
Receive current DialogUXState and additional infos.
DialogUXState
DialogUXState list.
Definition: dialog_ux_state_aggregator_interface.hh:44
Model for holding chips Info.
Definition: chips_interface.hh:60