Class representing a voice template converter.
More...
#include <voicesdk/core/common/voice_template_converter.h>
|
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...
|
|
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 Ptr | create (const std::string &initPath) |
| Factory method. More...
|
|
static Ptr | create (const std::string &initPath) |
| Factory method. More...
|
|
Class representing a voice template converter.
◆ convertVoiceTemplate() [1/2]
virtual VoiceTemplate::Ptr voicesdk::VoiceTemplateConverter::convertVoiceTemplate |
( |
const VoiceTemplate::Ptr & |
voiceTemplate | ) |
const |
|
pure virtual |
Converts voice template from one configuration to another.
- Parameters
-
voiceTemplate | Voice template to be converted |
- Returns
- Converted voice template
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ convertVoiceTemplate() [2/2]
virtual VoiceTemplate::Ptr voicesdk::VoiceTemplateConverter::convertVoiceTemplate |
( |
const VoiceTemplate::Ptr & |
voiceTemplate | ) |
const |
|
pure virtual |
Converts voice template from one configuration to another.
- Parameters
-
voiceTemplate | Voice template to be converted |
- Returns
- Converted voice template
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ create() [1/2]
static Ptr voicesdk::VoiceTemplateConverter::create |
( |
const std::string & |
initPath | ) |
|
|
static |
Factory method.
- Parameters
-
initPath | Path to the init data folder |
- Returns
- Created VoiceTemplateConverter instance
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ create() [2/2]
static Ptr voicesdk::VoiceTemplateConverter::create |
( |
const std::string & |
initPath | ) |
|
|
static |
Factory method.
- Parameters
-
initPath | Path to the init data folder |
- Returns
- Created VoiceTemplateConverter instance
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ getInputInitDataId() [1/2]
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
◆ getInputInitDataId() [2/2]
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() [1/2]
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
◆ getOutputInitDataId() [2/2]
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