.. _dootle.actions.say: ================== dootle.actions.say ================== .. py:module:: dootle.actions.say Classes ------- .. autoapisummary:: dootle.actions.say.SayAction dootle.actions.say.SayTimeAction Module Contents =============== .. _dootle.actions.say.SayAction: .. py:class:: SayAction A Simple Action to trigger speech synthesis Will say anything expanded from the action specs 'args' .. py:attribute:: mac_announce_args :type: ClassVar[list[str]] :value: ['-v', 'Moira', '-r', '50'] .. py:method:: _say_linux(spec, state, args, wait, background) -> bool .. py:method:: _say_mac(spec, state, args, wait, background) -> bool .. _dootle.actions.say.SayTimeAction: .. py:class:: SayTimeAction A Simple Action that announces the time Subclass this and override __call__ for your own actions. The arguments of the action are held in self.spec .. py:attribute:: _toml_kwargs :value: ['wait', 'background'] .. py:attribute:: mac_announce_args :value: ['-v', 'Moira', '-r', '50', 'The Time Is '] .. py:attribute:: linux_announce_args :value: ['The Time Is '] .. py:attribute:: time_format :value: '%H:%M' .. py:method:: _current_time() -> str .. py:method:: _say_linux(spec, state: dict) .. py:method:: _say_mac(spec, state: dict)