Quality check engine class. More...
#include <voicesdk/media/quality_check.h>
Public Types | |
using | Ptr = std::shared_ptr< QualityCheckEngine > |
Public Member Functions | |
virtual QualityCheckMetricsThresholds | GetRecommendedThresholds (QualityCheckScenario scenario) const =0 |
Gets recommended quality checking thresholds for the specified scenario. More... | |
virtual QualityCheckEngineResult | CheckQuality (const std::string &audio_path, const QualityCheckMetricsThresholds &thresholds) const =0 |
Checks whether audio file is suitable from the quality perspective, from the given audio file. More... | |
virtual QualityCheckEngineResult | CheckQuality (const float *float_samples, size_t num_samples, size_t sample_rate, const QualityCheckMetricsThresholds &thresholds) const =0 |
Checks whether audio buffer is suitable from the quality perspective, from the given float audio samples. More... | |
virtual QualityCheckEngineResult | CheckQuality (const int16_t *pcm16_samples, size_t num_samples, size_t sample_rate, const QualityCheckMetricsThresholds &threshold) const =0 |
Checks whether audio buffer is suitable from the quality perspective, from the given PCM16 audio samples. More... | |
virtual QualityCheckEngineResult | CheckQuality (const uint8_t *pcm16_bytes, size_t num_bytes, size_t sample_rate, const QualityCheckMetricsThresholds &thresholds) const =0 |
Checks whether audio buffer is suitable from the quality perspective, from the given PCM16 audio samples. More... | |
Static Public Member Functions | |
static QualityCheckEngine::Ptr | Create (const std::string &init_path) |
Creates QualityCheckEngine instance. More... | |
Quality check engine class.
|
pure virtual |
Checks whether audio buffer is suitable from the quality perspective, from the given float audio samples.
float_samples | A buffer containing normalized (from -1 to 1) float audio samples |
num_samples | Number of audio samples |
sample_rate | Audio sampling rate in Hz |
thresholds | Quality checking thresholds that will be applied to the output quality check metrics |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Checks whether audio buffer is suitable from the quality perspective, from the given PCM16 audio samples.
pcm16_samples | A buffer containing PCM16 audio samples |
num_samples | Number of audio samples |
sample_rate | Audio sampling rate in Hz |
thresholds | Quality checking thresholds that will be applied to the output quality check metrics |
std::runtime_error | if runtime error occurred |
|
pure virtual |
Checks whether audio file is suitable from the quality perspective, from the given audio file.
audio_path | Path to audio file |
thresholds | Quality checking thresholds that will be applied to the output quality check metrics |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Checks whether audio buffer is suitable from the quality perspective, from the given PCM16 audio samples.
pcm16_bytes | A buffer containing byte representation of PCM16 audio bytes |
num_bytes | Number of bytes |
sample_rate | Audio sampling rate in Hz |
thresholds | Quality checking thresholds that will be applied to the output quality check metrics |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
static |
Creates QualityCheckEngine instance.
init_path | Initialization data path |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Gets recommended quality checking thresholds for the specified scenario.
scenario | Scenario for which recommended thresholds will be returned |
std::runtime_error | if runtime error occurred |
voicesdk::LicenseException | if license error occurred |