Call Center SDK  1.11.3
voice_template_converter.h
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>
9 #include <voicesdk/core/common/voice_template.h>
10 
11 namespace voicesdk {
12 
16 class VOICE_SDK_API VoiceTemplateConverter {
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
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.