Responsible for creation of Recognizer and DynamicModel instances.
More...
#include <Engine.hpp>
|
| template<class T , typename... Args> |
| static auto | make (Args &&... args) -> std::shared_ptr< Engine > |
| | Gets or constructs a shared Asr::Engine instance of type T with args.
|
| |
Responsible for creation of Recognizer and DynamicModel instances.
◆ Engine()
| Engine::Engine |
( |
char const * |
name | ) |
|
|
protected |
- Parameters
-
| name | Name of the configuration object in vsdk.json |
- Warning
- Requires to be called after
Vsdk::Init
◆ ~Engine()
◆ make()
template<class T , typename... Args>
| static auto Vsdk::Asr::Engine::make |
( |
Args &&... |
args | ) |
-> std::shared_ptr<Engine>
|
|
static |
Gets or constructs a shared Asr::Engine instance of type T with args.
- Note
- If an engine of this type exists, a shared instance will be returned instead.
◆ recognizer()
| auto Engine::recognizer |
( |
std::string const & |
name | ) |
-> std::shared_ptr<Recognizer> |
Gets or constructs a shared Recognizer instance that's been previously configured.
- Parameters
-
| name | Found in the configuration of this engine, name of the Recognizer you want |
◆ dynamicModel()
| auto Engine::dynamicModel |
( |
std::string const & |
name | ) |
-> std::shared_ptr<DynamicModel> |
Gets or constructs a shared DynamicModel instance that's been previously configured.
- Parameters
-
| name | Found in the configuration of this engine, name of the model you want |
◆ userWordEnroller()
| auto Engine::userWordEnroller |
( |
std::string const & |
recognizerName | ) |
-> std::shared_ptr<UserWordEnroller> |
Gets or constructs a shared UserWordEnroller instance that's been previously configured.
- Parameters
-
| name | Found in the configuration of this engine, name of the Recognizer you want. |
- Returns
- A UserWordEnroller associated with
- Parameters
-
◆ recognizersInfo()
| auto Engine::recognizersInfo |
( |
| ) |
const -> std::unordered_map<std::string, RecognizerInfo> const & |
◆ modelsInfo()
| auto Engine::modelsInfo |
( |
| ) |
const -> std::unordered_map<std::string, ModelInfo> const & |
◆ userwordsInfo()
| virtual auto Vsdk::Asr::Engine::userwordsInfo |
( |
| ) |
const -> std::vector< UserWordsInfo > |
|
pure virtual |
◆ makeRecognizer()
| virtual auto Vsdk::Asr::Engine::makeRecognizer |
( |
std::string |
name | ) |
-> Recognizer * |
|
protectedpure virtual |
◆ makeDynamicModel()
| virtual auto Vsdk::Asr::Engine::makeDynamicModel |
( |
std::string |
name | ) |
-> DynamicModel * |
|
protectedpure virtual |
◆ makeUserWordEnroller()
| virtual auto Vsdk::Asr::Engine::makeUserWordEnroller |
( |
std::string |
name | ) |
-> UserWordEnroller * |
|
protectedpure virtual |
◆ setRecognizerInfo()
- Note
- If
info.name.empty() then removes entry
◆ setModelInfo()
- Note
- If
info.name.empty() then removes entry