dootle.actions.say

Classes

SayAction

A Simple Action to trigger speech synthesis

SayTimeAction

A Simple Action that announces the time

Module Contents

class dootle.actions.say.SayAction

A Simple Action to trigger speech synthesis Will say anything expanded from the action specs ‘args’

mac_announce_args: ClassVar[list[str]] = ['-v', 'Moira', '-r', '50']
_say_linux(
spec,
state,
args,
wait,
background,
) bool
Return type:

bool

_say_mac(
spec,
state,
args,
wait,
background,
) bool
Return type:

bool

class dootle.actions.say.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

_toml_kwargs = ['wait', 'background']
mac_announce_args = ['-v', 'Moira', '-r', '50', 'The Time Is ']
linux_announce_args = ['The Time Is ']
time_format = '%H:%M'
_current_time() str
Return type:

str

_say_linux(spec, state: dict)
Parameters:

state (dict)

_say_mac(spec, state: dict)
Parameters:

state (dict)