Skip to main content
Version: 21 Aug 2024

MLVoiceIntentCallbacks

Module: Input

A structure containing callbacks for voice intent events. More...

#include <ml_voice.h>

Public Attributes

TypeName
uint32_tversion
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.

TypeDescription
void()(const MLVoiceIntentEvent event, void *data))(const MLVoiceIntentEvent event, void data)

Parameters

eventVoice intent event.
dataUser data as passed to MLVoiceIntentSetCallbacks().