Doly C++ SDK v1.00
Loading...
Searching...
No Matches
TtsControl.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include <string>
4
21
22 // Thanks to piper TTS library, this is a wrapper for it.
23
30enum class VoiceModel :uint8_t
31{
35};
36
37namespace TtsControl
38{
53 int8_t init(VoiceModel model, std::string output_path = "");
54
59 int8_t dispose();
60
73 int8_t produce(std::string text);
74
79 float getVersion();
80
81};
82 // end of group doly_ttscontrol
VoiceModel
Available voice model selections.
Definition TtsControl.h:31
@ MODEL_2
Definition TtsControl.h:33
@ MODEL_1
Definition TtsControl.h:32
@ MODEL_3
Definition TtsControl.h:34
Definition TtsControl.h:38
float getVersion()
Get the TTS subsystem/library version.
int8_t dispose()
Dispose the TTS system and release resources.
int8_t produce(std::string text)
Produce a speech audio output from text.
int8_t init(VoiceModel model, std::string output_path="")
Initialize the TTS system.