Macros | Functions | Variables
imxrt1050/imxrt1050-evkb/source/main_multi.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "pv_porcupine_mcu.h"
#include "pv_audio_rec.h"
#include "pv_params.h"
#include "pv_imxrt1050.h"
Include dependency graph for imxrt1050/imxrt1050-evkb/source/main_multi.c:

Go to the source code of this file.

Macros

#define MEMORY_BUFFER_SIZE   (50 * 1024)
 

Functions

static void error_handler (void)
 
int main (void)
 
static void wake_word_callback (int32_t keyword_index)
 

Variables

static const char * ACCESS_KEY
 
static const int32_t KEYWORD_MODEL_SIZES []
 
static const void * KEYWORD_MODELS []
 
static const char * KEYWORDS_NAME []
 
static const int32_t NUM_KEYWORDS = 4
 
static const float SENSITIVITIES []
 

Macro Definition Documentation

◆ MEMORY_BUFFER_SIZE

#define MEMORY_BUFFER_SIZE   (50 * 1024)

Definition at line 22 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

Function Documentation

◆ error_handler()

static void error_handler ( void  )
static

Definition at line 59 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ main()

int main ( void  )

Definition at line 64 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ wake_word_callback()

static void wake_word_callback ( int32_t  keyword_index)
static

Definition at line 55 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

Variable Documentation

◆ ACCESS_KEY

const char* ACCESS_KEY
static
Initial value:
= ...
static int8_t memory_buffer[MEMORY_BUFFER_SIZE] __attribute__((aligned(16)))

Definition at line 24 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ KEYWORD_MODEL_SIZES

const int32_t KEYWORD_MODEL_SIZES[]
static
Initial value:
= {
sizeof(DEFAULT_KEYWORD_ARRAY),
sizeof(PICOVOICE_KEYWORD_ARRAY),
sizeof(BUMBLEBEE_KEYWORD_ARRAY),
sizeof(ALEXA_KEYWORD_ARRAY)
}

Definition at line 29 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ KEYWORD_MODELS

const void* KEYWORD_MODELS[]
static
Initial value:
= {
DEFAULT_KEYWORD_ARRAY,
PICOVOICE_KEYWORD_ARRAY,
BUMBLEBEE_KEYWORD_ARRAY,
ALEXA_KEYWORD_ARRAY
}

Definition at line 35 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ KEYWORDS_NAME

const char* KEYWORDS_NAME[]
static
Initial value:
= {
"Porcupine",
"Picovoice",
"Bumblebee",
"Alexa"
}

Definition at line 48 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ NUM_KEYWORDS

const int32_t NUM_KEYWORDS = 4
static

Definition at line 28 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

◆ SENSITIVITIES

const float SENSITIVITIES[]
static
Initial value:
= {
0.75f,
0.75f,
0.75f,
0.75f
}

Definition at line 41 of file imxrt1050/imxrt1050-evkb/source/main_multi.c.

MEMORY_BUFFER_SIZE
#define MEMORY_BUFFER_SIZE
Definition: imxrt1050/imxrt1050-evkb/source/main_multi.c:22
__attribute__
__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
Reverse byte order (16 bit)
Definition: imxrt1050/imxrt1050-evkb/CMSIS/cmsis_armcc.h:492


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:58