MLVoiceIntentCallbacks
Module: Input
A structure containing callbacks for voice intent events. More...
#include <ml_voice.h>
Public Attributes
Type | Name |
---|---|
uint32_t | version |
void()(const MLVoiceIntentEvent event, void *data) | on_voice_event This callback will be invoked whenever a voice intent event is detected. |
Detailed Description
struct MLVoiceIntentCallbacks;
A structure containing callbacks for voice intent events.
The final parameter to all the callbacks is a void *, which will point to whatever payload data the user provides in MLVoiceIntentSetCallbacks. Individual callbacks which are not required by the client can be NULL.
This structure must be initialized by calling MLVoiceIntentCallbacksInit() before use.
API Level:
- 24
Public Attributes Documentation
version
uint32_t version;
Version of this callback.
on_voice_event
void(*)(const MLVoiceIntentEvent *event, void *data) on_voice_event;
This callback will be invoked whenever a voice intent event is detected.
Type | Description |
---|---|
void()(const MLVoiceIntentEvent event, void *data) | )(const MLVoiceIntentEvent event, void data) |
Parameters
event | Voice intent event. | |
data | User data as passed to MLVoiceIntentSetCallbacks(). |