src/intent_handler#

This folder contains ASR output handling modules for the FFD application.

Table 16 FFD Intent handler#

Filename/Directory

Description

audio_response directory

include folder for handling audio responses to keywords

intent_handler.c

contains the implementation of default intent handling code

intent_handler.h

header for intent handler code

Major Components#

The intent handling module provides the application with one API function:

Listing 7 Intent Handler API (intent_handler.h)#
int32_t intent_handler_create(uint32_t priority, void *args);

If replacing the existing handler code, this is the only function that is required to be populated.

intent_handler_create#

This function has the role of creating the keyword handling task for the ASR engine. In the case of the Wanson model, the application provides a FreeRTOS Queue object. This handler is on the same tile as the Wanson engine, tile 0.

The call to intent_handler_create() will create one thread on tile 0. This thread will receive ID packets from the ASR engine over a FreeRTOS Queue object and output over various IO interfaces based on configuration.