Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::VoiceCallbacks Struct Reference

Callbacks for voice events. More...

#include <stt_pipeline.h>

Public Attributes

std::function< void()> onSpeechStart
 Called when PTT starts (beginPTT).
std::function< void(const std::string &text)> onPartial
 Called with the partion transcript.
std::function< void(const std::string &text)> onFinal
 Called with the final transcript after endPTT().
std::function< void()> onSpeechEnd
 Called when PTT session ends and transcription is done.
std::function< void()> onCancel
 Called when the current transcription is cancelled.

Detailed Description

Callbacks for voice events.