Callbacks for voice events.
More...
#include <stt_pipeline.h>
|
|
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.
|
Callbacks for voice events.