Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::ISttService Class Referenceabstract

Interface for the STT Engine. Pure virtual class to enforce ABI boundaries. More...

#include <stt_service.h>

Public Member Functions

virtual bool initialize (const SttConfig &config)=0
 Initialize the STT service with the given configuration.
virtual void shutdown ()=0
 Shutdown the STT service.
virtual void startListening ()=0
 Start listening for audio input.
virtual void stopListening ()=0
 Stop listening for audio input.
virtual void setCallbacks (const SttCallbacks &cb)=0
 Set the STT event callbacks.

Static Public Member Functions

static std::unique_ptr< ISttServicecreate ()
 Factory method to create an instance of the STT service.

Detailed Description

Interface for the STT Engine. Pure virtual class to enforce ABI boundaries.

Member Function Documentation

◆ create()

std::unique_ptr< ISttService > agents::ISttService::create ( )
static

Factory method to create an instance of the STT service.

Returns
std::unique_ptr<ISttService> Pointer to the STT service instance

◆ initialize()

virtual bool agents::ISttService::initialize ( const SttConfig & config)
pure virtual

Initialize the STT service with the given configuration.

Parameters
configThe STT configuration
Returns
true if initialization succeeded
false if initialization failed

◆ setCallbacks()

virtual void agents::ISttService::setCallbacks ( const SttCallbacks & cb)
pure virtual

Set the STT event callbacks.

Parameters
cbThe STT callbacks