8 #include <voicesdk/core/config.h>
15 enum class ChannelType {
27 using Ptr = std::shared_ptr<VoiceTemplate>;
34 virtual void serialize(std::ostream &stream)
const = 0;
49 virtual void saveToFile(
const std::string& filepath)
const = 0;
Class representing a voice template (voice profile)
Definition: voice_template.h:24
static Ptr loadFromFile(const std::string &filepath)
Restores voice template from the given file.
virtual const ChannelType & getChannelType() const =0
Returns voice template channel type which was specified by user on creation.
virtual void serialize(std::ostream &stream) const =0
Serializes voice template to the given stream.
static Ptr deserialize(std::istream &stream)
Deserializes voice template from the given stream.
virtual bool isValid() const =0
Checks if voice template is valid or not.
virtual void saveToFile(const std::string &filepath) const =0
Stores voice template in a file of the given path.
virtual const std::string & getInitDataId() const =0
Returns ID of the init data, which was used to create the template.