VoiceSDK  5.0.2
Public Member Functions | Public Attributes | List of all members
voicesdk::VerifySamplesBatchElement< T > Struct Template Reference

Struct for verify factory batch processing VoiceTemplateFactory::createVoiceTemplateBatch. More...

#include <voicesdk/verify/verify.h>

Public Member Functions

 VerifySamplesBatchElement (const T *data, size_t data_size, size_t sample_rate, ChannelType channel_type)
 

Public Attributes

const T * data
 A buffer containing audio samples. More...
 
size_t data_size
 Number of audio samples. More...
 
size_t sample_rate
 Audio sampling rate in Hz. More...
 
ChannelType channel_type
 Audio record channel type. More...
 

Detailed Description

template<class T>
struct voicesdk::VerifySamplesBatchElement< T >

Struct for verify factory batch processing VoiceTemplateFactory::createVoiceTemplateBatch.

Constructor & Destructor Documentation

◆ VerifySamplesBatchElement()

template<class T >
voicesdk::VerifySamplesBatchElement< T >::VerifySamplesBatchElement ( const T *  data,
size_t  data_size,
size_t  sample_rate,
ChannelType  channel_type 
)
inline

Member Data Documentation

◆ channel_type

template<class T >
ChannelType voicesdk::VerifySamplesBatchElement< T >::channel_type

Audio record channel type.

◆ data

template<class T >
const T* voicesdk::VerifySamplesBatchElement< T >::data

A buffer containing audio samples.

◆ data_size

template<class T >
size_t voicesdk::VerifySamplesBatchElement< T >::data_size

Number of audio samples.

◆ sample_rate

template<class T >
size_t voicesdk::VerifySamplesBatchElement< T >::sample_rate

Audio sampling rate in Hz.

Note
sampling frequency should be equal to or greater than the value returned by VoiceTemplateFactory::getMinimumAudioSampleRate