Call Center SDK
1.11.3
|
Class for continuous voice verification using Opus audio stream. More...
#include <voicesdk/verify/verify_stream.h>
Public Types | |
using | Ptr = std::shared_ptr< VoiceVerifyStreamOpus > |
Public Member Functions | |
virtual void | reset ()=0 |
Resets stream state. | |
virtual void | addPacket (const uint8_t *bytes, size_t bytesNum)=0 |
Adds Opus packet to process. More... | |
virtual void | finalize ()=0 |
Finalizes input audio stream to process remaining audio samples and produce result if it's possible. | |
virtual bool | hasVerifyResults () const =0 |
Checks if there are available verification results in output queue. More... | |
virtual VerifyStreamResult | getVerifyResult ()=0 |
Retrieves verification result from output queue. Use hasVerifyResult() to know if there are available results. More... | |
Static Public Member Functions | |
static Ptr | create (VoiceTemplateFactory::Ptr voiceTemplateFactory, VoiceTemplateMatcher::Ptr voiceTemplateMatcher, VoiceTemplate::Ptr voiceTemplate, size_t sampleRate, size_t audioContextLengthSeconds=10) |
Factory method. More... | |
Class for continuous voice verification using Opus audio stream.
|
pure virtual |
Adds Opus packet to process.
bytes | A buffer containing single Opus packet. It is expected that packet contains data for single mono stream |
bytesNum | Number of bytes |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
static |
Factory method.
voiceTemplateFactory | Voice template factory instance |
voiceTemplateMatcher | Voice template matcher instance |
voiceTemplate | Reference voice template to match with |
sampleRate | Input audio stream sampling frequency in Hz. Must be one of 8000, 12000, 16000, 24000 or 48000. |
audioContextLengthSeconds | Length of audio context for voice verification in seconds, must be at least 3 seconds |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Retrieves verification result from output queue. Use hasVerifyResult() to know if there are available results.
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Checks if there are available verification results in output queue.