NUGU SDK Linux  1.7.5
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 
24 namespace NuguClientKit {
25 
26 using namespace NuguCapability;
27 
43 enum class DialogUXState {
44  Listening,
45  Recognizing,
46  Thinking,
47  Speaking,
48  Idle
49 };
50 
55 public:
56  virtual ~IDialogUXStateAggregatorListener() = default;
57 
65  virtual void onStateChanged(DialogUXState state, bool multi_turn, const ChipsInfo& chips, bool session_active);
66 
71  virtual void onASRResult(const std::string& text);
72 };
73 
74 } // NuguClientKit
75 
80 #endif /* __DIALOG_UX_STATE_AGGREGATOR_INTERFACE_H__ */
IDialogUXStateAggregatorListener interface.
Definition: dialog_ux_state_aggregator_interface.hh:54
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:43
Model for holding chips Info.
Definition: chips_interface.hh:59