ASR listener interface.
More...
#include <asr_interface.hh>
ASR listener interface.
- See also
- IASRHandler
◆ onState()
virtual void NuguCapability::IASRListener::onState |
( |
ASRState |
state, |
|
|
const std::string & |
dialog_id, |
|
|
ASRInitiator |
initiator |
|
) |
| |
|
pure virtual |
◆ onNone()
virtual void NuguCapability::IASRListener::onNone |
( |
const std::string & |
dialog_id | ) |
|
|
pure virtual |
No speech recognition results.
- Parameters
-
[in] | dialog_id | dialog request id |
◆ onPartial()
virtual void NuguCapability::IASRListener::onPartial |
( |
const std::string & |
text, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
The result of recognizing the user's speech in real time.
- Parameters
-
[in] | text | Speech recognition result |
[in] | dialog_id | dialog request id |
◆ onComplete()
virtual void NuguCapability::IASRListener::onComplete |
( |
const std::string & |
text, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
Speech recognition results which are reported naturally in situations based on the entire speech.
- Parameters
-
[in] | text | Speech recognition result |
[in] | dialog_id | dialog request id |
◆ onError()
virtual void NuguCapability::IASRListener::onError |
( |
ASRError |
error, |
|
|
const std::string & |
dialog_id, |
|
|
bool |
listen_timeout_fail_beep = true |
|
) |
| |
|
pure virtual |
Report an error occurred during speech recognition to the user.
- Parameters
-
[in] | error | ASR error |
[in] | dialog_id | dialog request id |
[in] | listen_timeout_fail_beep | whether to play fail beep or not when listen-timeout occurred |
◆ onCancel()
virtual void NuguCapability::IASRListener::onCancel |
( |
const std::string & |
dialog_id | ) |
|
|
pure virtual |
Speech recognition is canceled.
- Parameters
-
[in] | dialog_id | dialog request id |
The documentation for this class was generated from the following file: