#include <Engine.hpp>
Classes | |
struct | SpeechEnhancerInfo |
Public Member Functions | |
~Engine () | |
auto | speechEnhancer (std::string const &name) -> std::shared_ptr< SpeechEnhancer > |
auto | speechEnhancersInfo () const -> std::unordered_map< std::string, SpeechEnhancerInfo > const & |
Gets available speech enhancers info. | |
Static Public Member Functions | |
template<class T , typename... Args> | |
static auto | make (Args &&... args) -> std::shared_ptr< Engine > |
Gets or constructs a shared SpeechEnhancement::Engine instance of type T with args . | |
Protected Member Functions | |
Engine (char const *name, std::string const &configPath) | |
Engine (char const *name, nlohmann::json config) | |
Engine (char const *name, char const *configPath) | |
Specialization used to avoid overload collisions, forwards to Engine(char const*, std::string const &); | |
virtual auto | makeSpeechEnhancer (std::string name) -> SpeechEnhancer *=0 |
void | setEnhancerInfo (std::string const &name, SpeechEnhancerInfo info) |
|
protected |
name | Name of the configuration object in vsdk.json |
configPath | Path to a vsdk.json formatted file |
|
protected |
name | Name of the configuration object in vsdk.json |
config | A vsdk.json formatted JSON configuration object |
|
protected |
Specialization used to avoid overload collisions, forwards to Engine(char const*, std::string const &);
name | Name of the configuration object in vsdk.json |
configPath | Path to a vsdk.json formatted file |
Engine::~Engine | ( | ) |
|
static |
Gets or constructs a shared SpeechEnhancement::Engine instance of type T
with args
.
auto Engine::speechEnhancer | ( | std::string const & | name | ) | -> std::shared_ptr<SpeechEnhancer> |
auto Engine::speechEnhancersInfo | ( | ) | const -> std::unordered_map<std::string, SpeechEnhancerInfo> const & |
Gets available speech enhancers info.
|
protectedpure virtual |
|
protected |
info.name.empty()
then removes entry