Sound Open Firmware
Loading...
Searching...
No Matches
kpb_service.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright 2026 Intel Corporation. All rights reserved.
4 */
5
6#ifndef SOF_AUDIO_MODULE_ADAPTER_LIBRARY_KPB_SERVICE_H
7#define SOF_AUDIO_MODULE_ADAPTER_LIBRARY_KPB_SERVICE_H
8
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22
32AdspErrorCode kpb_service_register_client(size_t current_history_depth,
33 size_t max_history_depth, uint32_t output_pin,
34 struct kpb_service_client **client);
35
44 uint32_t phrase_length);
45
53
54#ifdef __cplusplus
55} /* extern "C" */
56#endif
57
58#endif /* SOF_AUDIO_MODULE_ADAPTER_LIBRARY_KPB_SERVICE_H */
uint32_t AdspErrorCode
Defines error codes that are returned in the ADSP project.
Definition adsp_error_code.h:18
AdspErrorCode kpb_service_unregister_client(struct kpb_service_client *client)
Unregister an IADK client from the SOF KPB component.
AdspErrorCode kpb_service_register_client(size_t current_history_depth, size_t max_history_depth, uint32_t output_pin, struct kpb_service_client **client)
Register an IADK client with the SOF KPB component.
AdspErrorCode kpb_service_signal_detection(struct kpb_service_client *client, uint32_t phrase_length)
Notify KPB about key phrase detection.
Opaque handle for a client registered with the SOF KPB component.