ToDo list (lokal) and TTS

Hello everybody,

I use a lokal todo-list to keep house servicing tasks in mind and for that I use an automation which used TTS to announce open tasks periodically (getting on my nerves and so I finish tasks sooner than later).

Problem:
There is no break between the announcements of the tasks. If a real person should do this job, there will be a little break in between for the line break.

Is there any chance to fill in such a little break?

Here my code to generate the TTS input:

{{ myDuties[‘todo.hausmeisters_merkzettel’][‘items’] | map(attribute=‘summary’) | list | join(', ') }}

(myDuties is a variable filled by a service)

Thanks a lot for helping.

With best regards

Gerhard

I use this for my shopping list:

{% set x = shopping_list_data['todo.shopping_list']['items'] | map(attribute='summary')| list %}
{{' and '.join((x|join(', ')).rsplit(', ', 1)) }}

I found it on a forum post (I’m ashamed to say I’ve forgotten who posted it - thanks whoever you are…). I love it because it inserts “and” between the last two items.