NUGU SDK Linux  1.7.6
ASRInterface

ASR capability interface. More...

+ Collaboration diagram for ASRInterface:

Classes

struct  NuguCapability::_ASRAttribute
 Attributes for setting ASR options. More...
 
class  NuguCapability::IASRHandler
 ASR handler interface. More...
 
class  NuguCapability::IASRListener
 ASR listener interface. More...
 

Macros

#define NUGU_ASR_ENCODING   "COMPLETE" /** @def Receive asr result by complete sentence */
 
#define NUGU_ASR_EPD_TYPE   "CLIENT" /** @def Use client end point detector */
 
#define NUGU_SERVER_RESPONSE_TIMEOUT_SEC   10 /** @def Set server response timeout about 10s */
 

Typedefs

typedef struct NuguCapability::_ASRAttribute NuguCapability::ASRAttribute
 Attributes for setting ASR options. More...
 

Enumerations

enum class  NuguCapability::ASRError {
  RESPONSE_TIMEOUT , LISTEN_TIMEOUT , LISTEN_FAILED , RECOGNIZE_ERROR ,
  UNKNOWN
}
 ASR error list. More...
 
enum class  NuguCapability::ASRInitiator {
  WAKE_UP_WORD , PRESS_AND_HOLD , TAP , EXPECT_SPEECH ,
  EARSET
}
 ASR initiator list. More...
 
enum class  NuguCapability::ASRState {
  IDLE , EXPECTING_SPEECH , LISTENING , RECOGNIZING ,
  BUSY
}
 ASR state list. More...
 

Detailed Description

ASR capability interface.

ASR (AutomaticSpeechRecognition) is responsible for recording the audio and delivering it to the server and receiving the result of speech recognition.

Typedef Documentation

◆ ASRAttribute

Attributes for setting ASR options.

See also
IASRHandler::setAttribute

Enumeration Type Documentation

◆ ASRState

ASR state list.

See also
IASRListener::onState
Enumerator
IDLE 

No interaction with the user

EXPECTING_SPEECH 

Received ExpectSpeech Directive

LISTENING 

The microphone is opened to listen to the user's speech

RECOGNIZING 

Initiated by sending a Recognize Event and continued streaming User speech is being input

BUSY 

Waiting for response after streaming

◆ ASRInitiator

ASR initiator list.

See also
IASRHandler::startRecognition
Enumerator
WAKE_UP_WORD 

initiated by wakeup

PRESS_AND_HOLD 

initiated by button press and hold

TAP 

initiated by button tap

EXPECT_SPEECH 

initiated by ASR.EXPECT_SPEECH directive

EARSET 

initiated by earset voice command

◆ ASRError

ASR error list.

See also
IASRListener::onError
Enumerator
RESPONSE_TIMEOUT 

This event occurs when audio streaming is sent but there is no response from the server for a certain time.

LISTEN_TIMEOUT 

This event occurs when the microphone is opened but there is no speech from the user for a certain time.

LISTEN_FAILED 

This event occurs when an error occurs inside the audio recognizer module.

RECOGNIZE_ERROR 

This event occurs when a recognition error occurs from the server.

UNKNOWN 

Unknown