Model Loader
pkgs/genx/modelloader Read the model configuration and register Generator, ASR, TTS, Realtime, Segmentor, Profiler and Labeler to the corresponding mux. It is the adaptation layer between configuration and runtime capability registration.
Loading relationship
Core structure and main function
| Symbol | Function |
|---|---|
ConfigFile | Express a single model configuration file. |
Entry | Describe the model capabilities to be registered and their parameters. |
VoiceEntry | Describe the voice configuration used by the voice model. |
LoadFromDir | Scan the directory, parse the configuration and register the capabilities, and return successfully loaded entries. |
Model Loader does not own the product model catalog or credential resource. The product layer is responsible for generating and protecting the configuration, and the Loader only interprets the configuration and establishes the runtime registration relationship.