Skip to content

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.

Go API References

Loading relationship

Core structure and main function

SymbolFunction
ConfigFileExpress a single model configuration file.
EntryDescribe the model capabilities to be registered and their parameters.
VoiceEntryDescribe the voice configuration used by the voice model.
LoadFromDirScan 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.