I would like the possibility of x repetitions in sentences.ini. The count should be mandatory.
Greatings, Jens
Number ranges are supported in Rhasspy:
https://rhasspy.readthedocs.io/en/latest/training/#sentencesini
Can you give an example of what you want?
The forum asked for an AND concatenation.
turn off garage and porch lights
https://community.rhasspy.org/t/turn-off-garage-and-porch-lights-multiple-values-for-same-slot/3591
In order to depict this, many possibilities would have to be presented:
sentences.ini:
turn (on|off) (garage{light1} [and] [(porch){light2}] | (porch){light2} [and] [garage{light1}]) lights
If there are 5 repetitions (I have a few more lamps…), the sentence becomes unnecessarily long.
It would therefore make sense to put the lamps in a LIGHTS slot and only link $LIGHTS in the sentences.ini.
It will look like that:
$LIGHTS [$LIGHTS] [$LIGHTS] [$LIGHTS] [$LIGHTS]
It would be nicer to repeat ($LIGHTS)+5 , as described in pyjsgf.
https://pyjsgf.readthedocs.io/en/latest/api/expansions.html?highlight=repeat#jsgf.expansions.Repeat
Since unlimited reps cannot be predicted, I suggest adding the number of reps as a requirement.
Greetings, Jens
Is the repeat or something similar something that is part of the hermes protocol that could be implemented? if slots could be filled with multiple values that would be awesome without having to explicitly configuring for a specific number of lights/ect.