103 random_utterances = []
110 if el.tag ==
'default-voice':
113 elif el.tag ==
'random-utterances':
117 elif el.tag ==
'soundboard':
122 elif el.tag ==
'walk-ups':
127 for utterance
in wup:
131 assert el.tag ==
'react-to'
133 for transition
in el:
150 debounce_sec = DEFAULT_DEBOUNCE_SEC
151 trans =
Transition(indi_id=indi_id, op=operation, value=value, value_2=value_2, debounce_sec=debounce_sec)
152 if trans
in transitions:
153 raise RuntimeError(f
"Multiply defined for {indi_id} {operation=} {value=}")
154 transitions[trans] = []
155 for utterance
in transition:
157 log.warning(f
"{transition}: {utterance} not 'speak' or 'file'?")
163 default_voice=default_voice,
164 random_utterances=random_utterances,
165 soundboard=soundboard,