17 #ifndef __NUGU_SPEECH_RECOGNIZER_INTERFACE_H__
18 #define __NUGU_SPEECH_RECOGNIZER_INTERFACE_H__
24 namespace NuguClientKit {
80 virtual void onRecordData(
unsigned char* buf,
int length,
bool is_end) = 0;
SpeechRecognizer listener interface.
Definition: speech_recognizer_interface.hh:63
virtual void onRecordData(unsigned char *buf, int length, bool is_end)=0
Get current audio input stream.
virtual void onListeningState(ListeningState state, const std::string &id)=0
Report to the user listening state changed.
SpeechRecognizer interface.
Definition: speech_recognizer_interface.hh:87
virtual void finishListening()=0
finish listening speech
virtual void setListener(ISpeechRecognizerListener *listener)=0
Set SpeechRecognizer listener object.
virtual void setEpdAttribute(const EpdAttribute &attribute)=0
Set EPD attribute.
virtual void stopListening()=0
Stop listening speech.
virtual bool startListening(const std::string &id)=0
Start listening speech.
virtual std::string getCodec()=0
Get codec information of recorder.
virtual bool isMute()=0
Get audio recorder's mute.
virtual std::string getMimeType()=0
Get mime type information of recorder.
virtual EpdAttribute getEpdAttribute()=0
Get EPD attribute.
struct NuguClientKit::_EpdAttribute EpdAttribute
Attributes about epd.
ListeningState
ListeningState.
Definition: speech_recognizer_interface.hh:40
Attributes about epd.
Definition: speech_recognizer_interface.hh:53
long epd_pause_length
Definition: speech_recognizer_interface.hh:56
int epd_max_duration
Definition: speech_recognizer_interface.hh:55
int epd_timeout
Definition: speech_recognizer_interface.hh:54