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
20
extern
"C"
{
21
#endif
/* __cplusplus */
22
26
struct
kws_prediction
{
28
bool
valid
;
30
uint16_t
class
;
32
const
char
*
name
;
34
float
avg_probability
;
35
};
36
42
int
kws_init
(
void
);
43
56
int
kws_process
(uint8_t *
const
audio_buffer,
const
uint16_t num_samples,
57
struct
kws_prediction
*
const
prediction);
58
62
void
kws_reset
(
void
);
63
64
#ifdef __cplusplus
65
}
66
#endif
/* __cplusplus */
67
68
#endif
/* __KEYWORD_SPOTTING_H__ */
69
kws_process
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.
kws_init
int kws_init(void)
Initialize keyword spotting model.
kws_reset
void kws_reset(void)
Reset keyword spotting model state.
kws_prediction::avg_probability
float avg_probability
Definition
kws.h:34
kws_prediction::valid
bool valid
Definition
kws.h:28
kws_prediction::name
const char * name
Definition
kws.h:32
kws_prediction
Prediction from keyword spotting model.
Definition
kws.h:26
applications
ww_kws
src
kws
kws.h
Generated on Thu Jul 9 2026 11:59:51 for Edge AI Add-on API by
1.12.0