You can set parameter values indirectly, as follows.
ConfigParam=$ConfigSection.VarParam.AnotherParam
where:
ConfigParam
|
is the name of the configuration parameter set to the value of the referenced configuration parameter. |
ConfigSection
|
is the name of the configuration section where the referenced variable configuration parameter appears. |
VarParam
|
is the name of the configuration parameter in the ConfigSection section, which references another configuration section. |
AnotherParam
|
is the name of the configuration parameter in the configuration section specified by the value of VarParam , whose value the ConfigParam parameter takes. |
For example, if an action parameter allows you to choose which language model to use for a particular action, all configuration parameters in the used modules must reference the correct language configuration.
[stt] Lang=$params.Lang=ENUK
In this case, you can choose a language pack by using the Lang
action parameter to specify the configuration section where the language options are set.
All configuration parameters that can change between language models must refer to the correct language configuration section. For example, you can set the SampleFrequency
configuration parameter for modules as well as languages. To use the correct value, you can set SampleFrequency
in all modules to refer to the Lang
configuration parameter in a single module.
[stream] SampleFrequency=$stt.Lang.SampleFrequency
In this example, the SampleFrequency
parameter in the stream
module refers to the Lang
parameter in the stt
module. In the stt
section, the Lang
configuration parameter uses the Lang
action parameter to determine which language configuration section to use.
|