36#ifndef __SONY_APPS_INCLUDE_AUDIOUTIL_AUDIO_RECOGNIZER_API_H
37#define __SONY_APPS_INCLUDE_AUDIOUTIL_AUDIO_RECOGNIZER_API_H
64#define AS_FEATURE_RECOGNIZER_ENABLE
71#define LENGTH_INIT_RECOGNIZER 3
75#define LENGTH_START_RECOGNIZER 2
79#define LENGTH_STOP_RECOGNIZER 2
83#define LENGTH_INIT_RECOGNIZER_DSP 4
87#define LENGTH_SET_RECOGNIZER_DSP 4
93#define AS_RECOGNIZER_FILE_PATH_LEN (AS_AUDIO_DSP_PATH_LEN)
164 uint32_t result_code;
396 \n Deprecated create API is used. \
397 \n Use \"AS_CreateRecognizer(AsCreateRecognizerParam_t * \
398 \n AudioAttentionCb)\". \
__attribute__((deprecated("\nDeprecated attention callback type is used. \
\nPlease use \"AudioAttentionCb\" as callback type. \
\n"))) int AS_CreateAudioManager(AudioSubSystemIDs ids
Activate AudioSubSystem[Deprecated] This API is to make it compatible with old application....
void(* AudioAttentionCb)(const ErrorAttentionParam *attparam)
Definition: audio_common_defs.h:810
bool AS_CreateRecognizer(FAR AsCreateRecognizerParam_t *param, AudioAttentionCb attcb)
Activate voice recognizer.
void(* RecognizerNotifyCallback)(AsRecognitionInfo info)
Definition: audio_recognizer_api.h:194
bool AS_checkAvailabilityRecognizer(void)
Check availability of Recognizer.
bool AS_DeleteRecognizer(void)
Deactivate voice recognizer.
AsRecognizerNotifyPath
Definition: audio_recognizer_api.h:149
AsRecognizerType
Definition: audio_recognizer_api.h:137
void(* RecognizerCallback)(RecognizerResult *result)
Definition: audio_recognizer_api.h:182
AsRecognizerEvent
Definition: audio_recognizer_api.h:101
#define AS_RECOGNIZER_FILE_PATH_LEN
Length of Recognizer dsp file name and path.
Definition: audio_recognizer_api.h:93
@ AsNotifyPathMessage
Recognition result is notify by message.
Definition: audio_recognizer_api.h:156
@ AsNotifyPathCallback
Recognition result is notify by callback.
Definition: audio_recognizer_api.h:152
@ AsRecognizerTypeInvalid
Invalid type.
Definition: audio_recognizer_api.h:144
@ AsRecognizerTypeUserCustom
Recognizer type is UserCustom.
Definition: audio_recognizer_api.h:140
@ AsRecognizerEventExec
Exec.
Definition: audio_recognizer_api.h:120
@ AsRecognizerEventInitRecognizerProc
Init RecognizerProc.
Definition: audio_recognizer_api.h:128
@ AsRecognizerEventAct
Activate.
Definition: audio_recognizer_api.h:104
@ AsRecognizerEventDeact
Deactivate.
Definition: audio_recognizer_api.h:108
@ AsRecognizerEventStop
Stop.
Definition: audio_recognizer_api.h:124
@ AsRecognizerEventInit
Init.
Definition: audio_recognizer_api.h:112
@ AsRecognizerEventSetRecognizerProc
Set RecognizerProc.
Definition: audio_recognizer_api.h:132
@ AsRecognizerEventStart
Start.
Definition: audio_recognizer_api.h:116
Definition: audio_recognizer_api.h:185
RecognizerCallback cb
[in] Event callback
Definition: audio_recognizer_api.h:188
Definition: audio_recognizer_api.h:358
AsRecognizerMsgQueId_t msgq_id
[in] ID for sending messages to each function
Definition: audio_recognizer_api.h:361
AsRecognizerPoolId_t pool_id
[in] ID of memory pool for processing data
Definition: audio_recognizer_api.h:365
Definition: audio_recognizer_api.h:253
Definition: audio_recognizer_api.h:210
uint8_t type
[in] Set recognizer type
Definition: audio_recognizer_api.h:216
uint8_t notify_path
[in] Select Data path from MicFrontend
Definition: audio_recognizer_api.h:228
Definition: audio_recognizer_api.h:261
uint32_t packet_size
[in] Command packet size
Definition: audio_recognizer_api.h:268
uint8_t * packet_addr
[in] Command packet address
Definition: audio_recognizer_api.h:264
Definition: audio_recognizer_api.h:203
Definition: audio_common_defs.h:739
Definition: audio_recognizer_api.h:326
uint8_t mng
[in] Message queue id of audio_manager
Definition: audio_recognizer_api.h:333
uint8_t dsp
[in] Message queue id of DSP
Definition: audio_recognizer_api.h:337
uint8_t recognizer
[in] Message queue id of sound recognizer
Definition: audio_recognizer_api.h:329
Definition: audio_recognizer_api.h:344
MemMgrLite::PoolId dsp
[in] Memory pool id of DSP communication Message
Definition: audio_recognizer_api.h:351
MemMgrLite::PoolId out
[in] Memory pool id of recognition result data
Definition: audio_recognizer_api.h:347
Definition: audio_recognizer_api.h:237
Definition: audio_recognizer_api.h:245
Definition: MemMgrTypes.h:88
Definition: audio_recognizer_api.h:275
uint32_t command_id
[in] Command ID
Definition: audio_recognizer_api.h:278
Definition: audio_recognizer_api.h:283
Definition: audio_recognizer_api.h:175
Definition: audio_recognizer_api.h:197
RecognizerNotifyCallback cb
[in] Recognition result notify callback
Definition: audio_recognizer_api.h:200