vsdk  7.1.1
Vsdk::Tts::Engineabstract

Responsible for creation of Channel instances. More...

Inheritance diagram for Vsdk::Tts::Engine:

Public Member Functions

virtual auto channel (std::string const &name) -> std::shared_ptr< Channel >=0
 Gets the TTS channel named name with no voice activated yet. More...
 
auto channel (std::string const &name, std::string const &voice) -> std::shared_ptr< Channel >
 Gets the TTS channel named name with a specific voice activated. More...
 
auto availableVoices () const -> ChannelVoices const &
 Gets available voices per channel for all configured channels. More...
 

Static Public Member Functions

template<class T , typename... Args>
static auto make (Args &&... args) -> std::shared_ptr< Engine >
 Gets or constructs a shared Tts::Engine instance of type T with args. More...
 

Protected Attributes

ChannelVoices _availableVoices
 

Detailed Description

Responsible for creation of Channel instances.

Member Function Documentation

◆ make()

template<class T , typename... Args>
static auto Vsdk::Tts::Engine::make ( Args &&...  args) -> std::shared_ptr<Engine>
static

Gets or constructs a shared Tts::Engine instance of type T with args.

Note
If an engine of this type exists, a shared instance will be returned instead.

◆ channel() [1/2]

virtual auto Vsdk::Tts::Engine::channel ( std::string const &  name) -> std::shared_ptr< Channel >
pure virtual

Gets the TTS channel named name with no voice activated yet.

◆ channel() [2/2]

auto Engine::channel ( std::string const &  name,
std::string const &  voice 
) -> std::shared_ptr<Channel>

Gets the TTS channel named name with a specific voice activated.

◆ availableVoices()

auto Engine::availableVoices ( ) const -> ChannelVoices const &

Gets available voices per channel for all configured channels.

Returns
map<channel_name, vector<voice>>

Member Data Documentation

◆ _availableVoices

ChannelVoices Vsdk::Tts::Engine::_availableVoices
protected