Call Center SDK  1.11.3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
voicesdk::VoiceTemplateConverter Class Referenceabstract

Class representing a voice template converter. More...

#include <voicesdk/core/voice_template_converter.h>

Public Types

using Ptr = std::shared_ptr< VoiceTemplateConverter >
 

Public Member Functions

virtual VoiceTemplate::Ptr convertVoiceTemplate (const VoiceTemplate::Ptr &voiceTemplate) const =0
 Converts voice template from one configuration to another. More...
 
virtual const std::string & getInputInitDataId () const =0
 Returns init data ID that voice template to be converted should have. More...
 
virtual const std::string & getOutputInitDataId () const =0
 Returns init data ID that converted voice template will have. More...
 

Static Public Member Functions

static Ptr create (const std::string &initPath)
 Factory method. More...
 

Detailed Description

Class representing a voice template converter.

Member Function Documentation

◆ convertVoiceTemplate()

virtual VoiceTemplate::Ptr voicesdk::VoiceTemplateConverter::convertVoiceTemplate ( const VoiceTemplate::Ptr &  voiceTemplate) const
pure virtual

Converts voice template from one configuration to another.

Parameters
voiceTemplateVoice template to be converted
Returns
Converted voice template
Exceptions
std::runtime_errorif runtime error occurred

◆ create()

static Ptr voicesdk::VoiceTemplateConverter::create ( const std::string &  initPath)
static

Factory method.

Parameters
initPathPath to the init data folder
Returns
Created VoiceTemplateConverter instance
Exceptions
std::runtime_errorif runtime error occurred

◆ getInputInitDataId()

virtual const std::string& voicesdk::VoiceTemplateConverter::getInputInitDataId ( ) const
pure virtual

Returns init data ID that voice template to be converted should have.

Returns
A string containing init data ID of the voice template to be converted

◆ getOutputInitDataId()

virtual const std::string& voicesdk::VoiceTemplateConverter::getOutputInitDataId ( ) const
pure virtual

Returns init data ID that converted voice template will have.

Returns
A string containing init data ID of the converted voice template