SpeechRecognizer listener interface.
More...
#include <speech_recognizer_interface.hh>
SpeechRecognizer listener interface.
- See also
- ISpeechRecognizer
◆ onListeningState()
virtual void NuguClientKit::ISpeechRecognizerListener::onListeningState |
( |
ListeningState |
state, |
|
|
const std::string & |
id |
|
) |
| |
|
pure virtual |
Report to the user listening state changed.
- Parameters
-
[in] | state | listening state |
[in] | id | listening id |
◆ onRecordData()
virtual void NuguClientKit::ISpeechRecognizerListener::onRecordData |
( |
unsigned char * |
buf, |
|
|
int |
length, |
|
|
bool |
is_end |
|
) |
| |
|
pure virtual |
Get current audio input stream.
- Parameters
-
[in] | buf | audio input data |
[in] | length | audio input length |
[in] | is_end | whether final data |
The documentation for this class was generated from the following file: