Developer World
Spresense SDK Library v1.4.2-3df2e9d
audio_recognizer_api.h File Reference

CXD5602 Audio Recognizer API. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  RecognizerResultHeader
 
struct  RecognizerResult
 
struct  AsActivateRecognizerParam
 
union  AsNotifyDest
 
struct  AsNotifyDest::__st_tunnel
 
struct  AsInitRecognizerParam
 
struct  AsStartRecognizerParam
 
struct  AsStopRecognizerParam
 
struct  AsDeactivateRecognizerParam
 
struct  AsInitRecognizerProcParam
 
struct  RecognizerCommandHeader
 
struct  RecognizerCommand
 
struct  AsRecognizerMsgQueId_t
 
struct  AsRecognizerPoolId_t
 
struct  AsCreateRecognizerParam_t
 

Macros

#define AS_FEATURE_RECOGNIZER_ENABLE
 
#define AS_RECOGNIZER_FILE_PATH_LEN   (AS_AUDIO_DSP_PATH_LEN)
 Length of Recognizer dsp file name and path.
 
Packet length of command
#define LENGTH_INIT_RECOGNIZER   3
 InitRecognizer command (AUDCMD_INIT_RECOGNIZER) packet length.
 
#define LENGTH_START_RECOGNIZER   2
 StartRecognizer command (AUDCMD_START_RECOGNIZER) packet length.
 
#define LENGTH_STOP_RECOGNIZER   2
 StopRecognizer command (AUDCMD_STOP_RECOGNIZER) packet length.
 
#define LENGTH_INIT_RECOGNIZER_DSP   4
 InitRecognizeProcDSP command (AUDCMD_INIT_RECOGNIZER_DSP) packet length.
 
#define LENGTH_SET_RECOGNIZER_DSP   4
 SetRecognizeProcDSP command (AUDCMD_SET_RECOGNIZER_DSP) packet length.
 

Typedefs

typedef void(* RecognizerCallback) (RecognizerResult *result)
 
typedef void(* RecognizerNotifyCallback) (AsRecognitionInfo info)
 
typedef struct AsInitRecognizerProcParam AsSetRecognizerProcParam
 

Enumerations

enum  AsRecognizerEvent {
  AsRecognizerEventAct = 0, AsRecognizerEventDeact, AsRecognizerEventInit, AsRecognizerEventStart,
  AsRecognizerEventExec, AsRecognizerEventStop, AsRecognizerEventInitRecognizerProc, AsRecognizerEventSetRecognizerProc
}
 
enum  AsRecognizerType { AsRecognizerTypeUserCustom = 0, AsRecognizerTypeInvalid = 0xff }
 
enum  AsRecognizerNotifyPath { AsNotifyPathCallback = 0, AsNotifyPathMessage }
 

Functions

bool AS_CreateRecognizer (FAR AsCreateRecognizerParam_t *param, AudioAttentionCb attcb)
 Activate voice recognizer. More...
 
 __attribute__ ((deprecated("\\ \Deprecated create API is used. \ \Use \S_CreateRecognizer(AsCreateRecognizerParam_t * \ \ AudioAttentionCb)\ \ \\ \))) bool AS_CreateRecognizer(FAR AsCreateRecognizerParam_t *param)
 
bool AS_DeleteRecognizer (void)
 Deactivate voice recognizer. More...
 
bool AS_checkAvailabilityRecognizer (void)
 Check availability of Recognizer. More...
 

Detailed Description

CXD5602 Audio Recognizer API.

Author
CXD5602 Audio SW Team