VoiceSDK  5.3.1
voice_template_converter.h
Go to the documentation of this file.
1 /* Copyright 2022 ID R&D Inc. All Rights Reserved. */
2 
3 #pragma once
4 
5 #include <memory>
6 #include <string>
7 
8 #include <voicesdk/core/config.h>
10 
11 namespace voicesdk {
12 
17 public:
18  using Ptr = std::shared_ptr<VoiceTemplateConverter>;
19 
26  static Ptr create(const std::string& initPath);
27 
34  virtual VoiceTemplate::Ptr convertVoiceTemplate(const VoiceTemplate::Ptr& voiceTemplate) const = 0;
35 
40  virtual const std::string& getInputInitDataId() const = 0;
41 
46  virtual const std::string& getOutputInitDataId() const = 0;
47 
48  virtual ~VoiceTemplateConverter() = default;
49 };
50 
51 } // namespace voicesdk
Class representing a voice template converter.
Definition: voice_template_converter.h:16
std::shared_ptr< VoiceTemplateConverter > Ptr
Definition: voice_template_converter.h:18
virtual const std::string & getOutputInitDataId() const =0
Returns init data ID that converted voice template will have.
virtual const std::string & getInputInitDataId() const =0
Returns init data ID that voice template to be converted should have.
static Ptr create(const std::string &initPath)
Factory method.
virtual VoiceTemplate::Ptr convertVoiceTemplate(const VoiceTemplate::Ptr &voiceTemplate) const =0
Converts voice template from one configuration to another.
virtual ~VoiceTemplateConverter()=default
std::shared_ptr< VoiceTemplate > Ptr
Definition: voice_template.h:27
#define VOICE_SDK_API
Definition: config.h:21
Definition: intervals.h:8