Class representing a voice template converter.
More...
#include <voicesdk/core/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...
|
|
|
static Ptr | create (const std::string &initPath) |
| Factory method. More...
|
|
Class representing a voice template converter.
◆ convertVoiceTemplate()
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()
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()
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