19 using Ptr = std::shared_ptr<SpeechEndpointDetector>;
31 size_t minSpeechLengthMs,
32 size_t maxSilenceLengthMs,
38 virtual void reset() = 0;
47 virtual void addSamples(
const uint8_t* bytes,
size_t bytesNum) = 0;
56 virtual void addSamples(
const float* samples,
size_t samplesNum) = 0;
65 virtual void addSamples(
const int16_t* samples,
size_t samplesNum) = 0;
71 virtual bool isSpeechEnded() = 0;
82 using Ptr = std::shared_ptr<SpeechEndpointDetectorOpus>;
94 size_t minSpeechLengthMs,
95 size_t maxSilenceLengthMs,
101 virtual void reset() = 0;
111 virtual void addPacket(
const uint8_t *bytes,
size_t bytesNum) = 0;
117 virtual bool isSpeechEnded() = 0;
Speech endpoint detector class (interface), intended to detect speech end in the Opus audio stream...
Definition: speech.h:79
Definition: intervals.h:8
std::shared_ptr< SpeechEndpointDetectorOpus > Ptr
Definition: speech.h:82
#define VOICE_SDK_API
Definition: config.h:21
std::shared_ptr< SpeechEndpointDetector > Ptr
Definition: speech.h:19
Speech endpoint detector class (interface), intended to detect speech end in the audio stream...
Definition: speech.h:16