Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
kws.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
13#ifndef __KEYWORD_SPOTTING_H__
14#define __KEYWORD_SPOTTING_H__
15
16#include <stdbool.h>
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
28 bool valid;
30 uint16_t class;
32 const char *name;
35};
36
42int kws_init(void);
43
56int kws_process(uint8_t *const audio_buffer, const uint16_t num_samples,
57 struct kws_prediction *const prediction);
58
62void kws_reset(void);
63
64#ifdef __cplusplus
65}
66#endif /* __cplusplus */
67
68#endif /* __KEYWORD_SPOTTING_H__ */
69
int kws_process(uint8_t *const audio_buffer, const uint16_t num_samples, struct kws_prediction *const prediction)
Process audio data by keyword spotting model.
int kws_init(void)
Initialize keyword spotting model.
void kws_reset(void)
Reset keyword spotting model state.
float avg_probability
Definition kws.h:34
bool valid
Definition kws.h:28
const char * name
Definition kws.h:32
Prediction from keyword spotting model.
Definition kws.h:26