17 #ifndef __SPEECH_RECOGNIZER_AGGREGATOR_INTERFACE_H__
18 #define __SPEECH_RECOGNIZER_AGGREGATOR_INTERFACE_H__
26 namespace NuguClientKit {
28 using namespace NuguCapability;
SpeechRecognizerAggregator listener interface.
Definition: speech_recognizer_aggregator_interface.hh:68
SpeechRecognizerAggregator interface.
Definition: speech_recognizer_aggregator_interface.hh:100
ASRInitiator
ASR initiator list.
Definition: asr_interface.hh:61
ASRError
ASR error list.
Definition: asr_interface.hh:73
ASRState
ASR state list.
Definition: asr_interface.hh:49
virtual void addListener(ISpeechRecognizerAggregatorListener *listener)=0
Add the ISpeechRecognizerAggregatorListener object.
Status
Result status.
Definition: speech_recognizer_aggregator_interface.hh:50
virtual void startListeningWithTrigger()=0
Start detecting wakeup and progress recognizing speech after wakeup detected.
std::string recognized_text
Definition: speech_recognizer_aggregator_interface.hh:59
Status status
Definition: speech_recognizer_aggregator_interface.hh:58
struct NuguClientKit::_RecognitionResult RecognitionResult
Model for holding recognition result.
virtual void stopListening(bool cancel=false)=0
Stop both recognizing speech and detecting wakeup.
virtual void onWakeupState(WakeupDetectState state, float power_noise, float power_speech)=0
Notify to user the wakeup detection state changed.
virtual void onASRState(ASRState state, const std::string &dialog_id, ASRInitiator initiator)=0
Notify to user the asr state changed.
ASRError error
Definition: speech_recognizer_aggregator_interface.hh:60
virtual void onResult(const RecognitionResult &result, const std::string &dialog_id)=0
Notify to user the recognition result.
virtual bool setWakeupModel(const WakeupModelFile &model_file)=0
Set wakeup model file.
virtual void startListening(float power_noise=0, float power_speech=0, ASRInitiator initiator=ASRInitiator::TAP)=0
Start recognizing speech.
virtual void finishListening()=0
finish listening speech
virtual void setWakeupHandler(const std::shared_ptr< IWakeupHandler > &wakeup_handler)=0
Set the IWakeupHandler object.
virtual void removeListener(ISpeechRecognizerAggregatorListener *listener)=0
Remove the ISpeechRecognizerAggregatorListener object.
bool listen_timeout_fail_beep
Definition: speech_recognizer_aggregator_interface.hh:61
WakeupDetectState
WakeupDetectState.
Definition: wakeup_interface.hh:40
Model for holding recognition result.
Definition: speech_recognizer_aggregator_interface.hh:46
Model for holding Wakeup model file info.
Definition: wakeup_interface.hh:51