Can perform voice synthesis. More...
Public Member Functions | |
Channel (Channel const &) noexcept=delete | |
Channel & | operator= (Channel const &) noexcept=delete |
Channel (Channel &&) noexcept=default | |
Channel & | operator= (Channel &&) noexcept=default |
virtual | ~Channel () noexcept=default |
auto | name () const -> std::string const & |
Name of this particular Channel instance. More... | |
auto | currentVoice () const -> std::string const & |
Name of the currently activated voice, if any. More... | |
void | setCurrentVoice (std::string const &voice) |
Activates a voice for the next synthesis operations. More... | |
virtual auto | synthesizeFromText (std::string const &text) -> Vsdk::Audio::Buffer=0 |
Synthesizes audio data from a SSML or raw text string. More... | |
virtual auto | synthesizeFromFile (std::string const &path) -> Vsdk::Audio::Buffer=0 |
Synthesizes audio data from a SSML or raw text file. More... | |
Protected Member Functions | |
Channel (std::shared_ptr< Engine > engine, std::string name) noexcept | |
virtual void | setCurrentVoiceImpl (std::string const &voice)=0 |
Static Protected Member Functions | |
static auto | packageResult (std::vector< std::int16_t > data, int sampleRate, int channelCount) -> Vsdk::Audio::Buffer |
Helper function that produces a Vsdk::Audio::Buffer. More... | |
Can perform voice synthesis.
|
protectednoexcept |
|
deletenoexcept |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
auto Channel::name | ( | ) | const -> std::string const & |
Name of this particular Channel instance.
auto Channel::currentVoice | ( | ) | const -> std::string const & |
Name of the currently activated voice, if any.
void Channel::setCurrentVoice | ( | std::string const & | voice | ) |
Activates a voice for the next synthesis operations.
|
pure virtual |
Synthesizes audio data from a SSML or raw text string.
|
pure virtual |
Synthesizes audio data from a SSML or raw text file.
|
protectedpure virtual |
|
staticprotected |
Helper function that produces a Vsdk::Audio::Buffer.