Go to the documentation of this file.
20 #include "pv_audio_rec.h"
21 #include "pv_params.h"
24 #define MEMORY_BUFFER_SIZE (50 * 1024)
32 sizeof(DEFAULT_KEYWORD_ARRAY),
33 sizeof(PICOVOICE_KEYWORD_ARRAY),
34 sizeof(BUMBLEBEE_KEYWORD_ARRAY),
35 sizeof(ALEXA_KEYWORD_ARRAY)
38 DEFAULT_KEYWORD_ARRAY,
39 PICOVOICE_KEYWORD_ARRAY,
40 BUMBLEBEE_KEYWORD_ARRAY,
81 printf(
" %.2x", board_uuid[i]);
114 uint32_t frame_number = 0;
118 int32_t keyword_index;
124 if (keyword_index != -1) {
128 if (frame_number++ > 20) {
static void error_handler(void)
pv_status_t pv_audio_rec_start(void)
PV_API pv_status_t pv_porcupine_init(const char *access_key, const char *model_path, int32_t num_keywords, const char *const *keyword_paths, const float *sensitivities, pv_porcupine_t **object)
void pv_board_deinit(void)
static const char * ACCESS_KEY
const uint8_t * pv_get_uuid(void)
static const float SENSITIVITIES[]
void BSP_LED_Off(Led_TypeDef Led)
Turns selected LED Off.
PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index)
const int16_t * pv_audio_rec_get_new_buffer(void)
static const int32_t KEYWORD_MODEL_SIZES[]
void BSP_LED_On(Led_TypeDef Led)
Turns selected LED On.
pv_status_t pv_board_init(void)
static const int32_t NUM_KEYWORDS
static const void * KEYWORD_MODELS[]
PV_API void pv_porcupine_delete(pv_porcupine_t *object)
const uint32_t pv_get_uuid_size(void)
#define MEMORY_BUFFER_SIZE
struct pv_porcupine pv_porcupine_t
pv_status_t pv_message_init(void)
static const char * KEYWORDS_NAME[]
static void wake_word_callback(int32_t keyword_index)
__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
Reverse byte order (16 bit)
void pv_audio_rec_deinit(void)
const PV_API char * pv_status_to_string(pv_status_t status)
pv_status_t pv_audio_rec_init(void)
This file contains definitions for STM32469I-Discovery LEDs, push-buttons hardware resources.