Doly C++ SDK v1.00
Loading...
Searching...
No Matches
TtsControl.h File Reference

Public API for Doly TTS (Text-to-Speech) control. More...

#include <stdint.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  TtsControl

Enumerations

enum class  VoiceModel : uint8_t { VoiceModel::MODEL_1 , VoiceModel::MODEL_2 , VoiceModel::MODEL_3 }
 Available voice model selections. More...

Functions

int8_t TtsControl::init (VoiceModel model, std::string output_path="")
 Initialize the TTS system.
int8_t TtsControl::dispose ()
 Dispose the TTS system and release resources.
int8_t TtsControl::produce (std::string text)
 Produce a speech audio output from text.
float TtsControl::getVersion ()
 Get the TTS subsystem/library version.

Detailed Description

Public API for Doly TTS (Text-to-Speech) control.

This header provides a simple interface for initializing a TTS engine and producing speech audio from text. The implementation is a wrapper around the Piper TTS library.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • init() must be called before produce()
  • Output audio is written to a file (see init() / output_path)