Sound Open Firmware
Loading...
Searching...
No Matches
intel_adsp::KpbInterfaceV2 Class Referenceabstract

Version 2 KPB service interface for IADK modules. More...

#include <src/include/sof/audio/module_adapter/iadk/kpb_interface.h>

Public Member Functions

virtual ErrorCode::Type RegisterKpbClient (const ModuleHandle &module_handle, KpbToken &token, size_t current_history_depth, size_t max_hist_depth, uint32_t output_pin) const =0
 Register an IADK module as a KPB client.
 
virtual ErrorCode::Type SignalDetection (KpbToken &token, void *data) const =0
 Report key-phrase detection for a registered client.
 
virtual ErrorCode::Type UnregisterKpbClient (KpbToken &token) const =0
 Unregister a KPB client.
 
virtual ErrorCode::Type RegisterKpbProducer (const ModuleHandle &module_handle) const =0
 Register an IADK module as a KPB producer.
 

Detailed Description

Version 2 KPB service interface for IADK modules.

Member Function Documentation

◆ 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_handleHandle of the module registering the client.
tokenStorage for the registered client's token.
current_history_depthInitial history depth in milliseconds.
max_hist_depthMaximum history depth in milliseconds.
output_pinZero-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_handleHandle of the module registering as a producer.
Returns
SOF error code, with ADSP_NO_ERROR on success.

◆ SignalDetection()

virtual ErrorCode::Type intel_adsp::KpbInterfaceV2::SignalDetection ( KpbToken &  token,
void *  data 
) const
pure virtual

Report key-phrase detection for a registered client.

Parameters
tokenToken of the registered client.
dataPointer to the detected phrase length in milliseconds.
Returns
SOF error code, with ADSP_NO_ERROR on success.

◆ UnregisterKpbClient()

virtual ErrorCode::Type intel_adsp::KpbInterfaceV2::UnregisterKpbClient ( KpbToken &  token) const
pure virtual

Unregister a KPB client.

Parameters
tokenToken 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: