Version 2 KPB service interface for IADK modules.
More...
#include <src/include/sof/audio/module_adapter/iadk/kpb_interface.h>
Version 2 KPB service interface for IADK modules.
◆ RegisterKpbClient()
| virtual ErrorCode::Type intel_adsp::KpbInterfaceV2::RegisterKpbClient |
( |
const ModuleHandle & |
module_handle, |
|
|
KpbToken & |
token, |
|
|
size_t |
current_history_depth, |
|
|
size_t |
max_hist_depth, |
|
|
uint32_t |
output_pin |
|
) |
| const |
|
pure virtual |
Register an IADK module as a KPB client.
- Parameters
-
| module_handle | Handle of the module registering the client. |
| token | Storage for the registered client's token. |
| current_history_depth | Initial history depth in milliseconds. |
| max_hist_depth | Maximum history depth in milliseconds. |
| output_pin | Zero-based buffered output pin index. |
- Returns
- SOF error code, with ADSP_NO_ERROR on success.
◆ RegisterKpbProducer()
| virtual ErrorCode::Type intel_adsp::KpbInterfaceV2::RegisterKpbProducer |
( |
const ModuleHandle & |
module_handle | ) |
const |
|
pure virtual |
Register an IADK module as a KPB producer.
- Parameters
-
| module_handle | Handle of the module registering as a producer. |
- Returns
- SOF error code, with ADSP_NO_ERROR on success.
◆ SignalDetection()
Report key-phrase detection for a registered client.
- Parameters
-
| token | Token of the registered client. |
| data | Pointer to the detected phrase length in milliseconds. |
- Returns
- SOF error code, with ADSP_NO_ERROR on success.
◆ UnregisterKpbClient()
Unregister a KPB client.
- Parameters
-
| token | Token of the client to unregister. |
- Returns
- SOF error code, with ADSP_NO_ERROR on success.
The documentation for this class was generated from the following file: