Sound Open Firmware
Loading...
Searching...
No Matches
kwd_nn_detect_test.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright 2021 NXP
4 *
5 * Author: Cristina Feies <cristina.ilie@nxp.com>
6 * Author: Viorel Suman <viorel.suman@nxp.com>
7 */
8
9#ifndef __USER_KWD_NN_DETECT_TEST_H__
10#define __USER_KWD_NN_DETECT_TEST_H__
11
13#include <sof/audio/component.h>
14
15#define KWD_NN_SILENCE 0
16#define KWD_NN_UNKNOWN 1
17#define KWD_NN_YES_KEYWORD 2
18#define KWD_NN_NO_KEYWORD 3
19
20/* 990 ms of data considering frame rate 16KHz */
21#define KWD_NN_KEY_LEN (990 * 16 * 1)
22#define KWD_NN_NUM_OF_CHANNELS 1
23/* ~2 seconds of samples */
24#define KWD_NN_IN_BUFF_SIZE (2 * KWD_NN_KEY_LEN * KWD_NN_NUM_OF_CHANNELS)
25
28 const struct audio_stream *source,
29 uint32_t frames);
30
31#endif /* __USER_KWD_NN_DETECT_TEST_H__ */
Component API definition.
#define KWD_NN_CONFIDENCES_SIZE
Definition kwd_nn_config.h:42
void kwd_nn_detect_test(struct comp_dev *dev, const struct audio_stream *source, uint32_t frames)
int kwd_nn_postprocess(uint8_t confidences[KWD_NN_CONFIDENCES_SIZE])
Audio stream is a circular buffer aware of audio format of the data in the buffer so provides API for...
Definition audio_stream.h:52
Audio component base device "class".
Definition component.h:645