NUGU SDK Linux  1.7.6
DialogUXStateAggregatorInterface

DialogUXStateAggregator Interface. More...

+ Collaboration diagram for DialogUXStateAggregatorInterface:

Classes

class  NuguClientKit::IDialogUXStateAggregatorListener
 IDialogUXStateAggregatorListener interface. More...
 

Enumerations

enum class  NuguClientKit::DialogUXState {
  Listening , Recognizing , Thinking , Speaking ,
  Idle
}
 DialogUXState list. More...
 

Functions

virtual void NuguClientKit::IDialogUXStateAggregatorListener::onASRResult (const std::string &text)
 Receive ASR result. More...
 
virtual void NuguClientKit::IDialogUXStateAggregatorListener::onStateChanged (DialogUXState state, bool multi_turn, const ChipsInfo &chips, bool session_active)
 Receive current DialogUXState and additional infos. More...
 

Detailed Description

DialogUXStateAggregator Interface.

Interface of DialogUXStateAggregator for receiving DialogUXState which is composed by combination of ASR, TTS, Chips info.

Enumeration Type Documentation

◆ DialogUXState

DialogUXState list.

Enumerator
Listening 

start to listen speech

Recognizing 

recognize speech

Thinking 

wait response

Speaking 

TTS playing

Idle 

no action

Function Documentation

◆ onStateChanged()

virtual void NuguClientKit::IDialogUXStateAggregatorListener::onStateChanged ( DialogUXState  state,
bool  multi_turn,
const ChipsInfo chips,
bool  session_active 
)
virtual

Receive current DialogUXState and additional infos.

Parameters
[in]statecurrent DialogUXState
[in]multi_turnwhether current dialog mode is multi-turn or not
[in]chipschips info
[in]session_activewhether session is activated or not

◆ onASRResult()

virtual void NuguClientKit::IDialogUXStateAggregatorListener::onASRResult ( const std::string &  text)
virtual

Receive ASR result.

Parameters
[in]textresult text