NUGU SDK Linux  1.7.6
NuguClientKit::ISpeechRecognizerListener Class Referenceabstract

SpeechRecognizer listener interface. More...

#include <speech_recognizer_interface.hh>

Public Member Functions

virtual void onListeningState (ListeningState state, const std::string &id)=0
 Report to the user listening state changed. More...
 
virtual void onRecordData (unsigned char *buf, int length, bool is_end)=0
 Get current audio input stream. More...
 

Detailed Description

SpeechRecognizer listener interface.

See also
ISpeechRecognizer

Member Function Documentation

◆ onListeningState()

virtual void NuguClientKit::ISpeechRecognizerListener::onListeningState ( ListeningState  state,
const std::string &  id 
)
pure virtual

Report to the user listening state changed.

Parameters
[in]statelistening state
[in]idlistening id

◆ onRecordData()

virtual void NuguClientKit::ISpeechRecognizerListener::onRecordData ( unsigned char *  buf,
int  length,
bool  is_end 
)
pure virtual

Get current audio input stream.

Parameters
[in]bufaudio input data
[in]lengthaudio input length
[in]is_endwhether final data

The documentation for this class was generated from the following file: