Is your feature request related to a problem? Please describe.
It is often helpful to be able to add 'arguments' or 'parameters' to voice commands. For example "
set timer for 10 minutes". Have you given any thought towards how this would be implemented?
Describe the solution you'd like
A way for commands to indicate that they accept/expect arguments, and a mechanism for the core system to relay any spoken arguments back to the command's python function.
Describe alternatives you've considered
Initial thought is that this could be somehow added to the command_registry call at https://github.com/openassistant/oa-core/blob/master/oa/core/util.py#L32. However, there may be a bit more intelligence needed here. For instance, "set timer for 10 minutes from now" is different than "set timer for 10 o'clock", so simply finding the first spoken number may not be sufficient.
Is your feature request related to a problem? Please describe.
It is often helpful to be able to add 'arguments' or 'parameters' to voice commands. For example "
set timer for 10 minutes". Have you given any thought towards how this would be implemented?
Describe the solution you'd like
A way for commands to indicate that they accept/expect arguments, and a mechanism for the core system to relay any spoken arguments back to the command's python function.
Describe alternatives you've considered
Initial thought is that this could be somehow added to the command_registry call at https://github.com/openassistant/oa-core/blob/master/oa/core/util.py#L32. However, there may be a bit more intelligence needed here. For instance, "set timer for 10 minutes from now" is different than "set timer for 10 o'clock", so simply finding the first spoken number may not be sufficient.