Page 1 of 1
?val
Posted: Mon Jul 18, 2022 9:16 pm
by dpoznan
The doc says ?val will retirve a value
I get the following..
mha [7] ?val:mha.sort_output.mhaconfig_out.srate
(mha_parser) Invalid query mode: "val"
What am I doing wrong?
Dan..
Re: ?val
Posted: Fri Jul 22, 2022 9:38 am
by tobiasherzke
MHA configuration language expects commands in the following order:
<path> <operator> <argument>
In your case, <path> is mha.sort_output.mhaconfig_out.srate, <operator> is the question mark, and <argument> is the query command "val". Change your command to
mha.sort_output.mhaconfig_out.srate?val
and it should work.
Re: ?val
Posted: Fri Jul 22, 2022 3:30 pm
by tobiasherzke
One addition because common instructions for reading openMHA configuration files may seem contradictory to what I just wrote (but aren't):
Our documentation like the getting-started guide contain configuration language commands like this to have the mha read a configuration file:
?read:gain_live_getting_started.cfg
Here, <path> is the empty path, <operator> is question mark, and <argument> is "read:gain_live_getting_started.cfg"
The empty path in MHA configuration language is equal to the root of the configuration language data tree. This example command instructs the root parser to read a configuration file.
Re: ?val
Posted: Sat Jul 23, 2022 11:03 pm
by dpoznan
Thanks much. I find the openmha syntax rather confusing.
It worked...
mha [1] mha.sort_output.mhaconfig_out.srate?val
44100
(MHA:success)
mha [2]
Thanks,
Dan..