Mercurial > code > home > repos > homeauto
annotate service/announce/tasks.py @ 1724:8d2c75a93d82
use pdm (these are new deps)
author | drewp@bigasterisk.com |
---|---|
date | Tue, 20 Jun 2023 23:13:09 -0700 |
parents | f70514b127d2 |
children |
rev | line source |
---|---|
670
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
1 from invoke import task, Collection |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
2 |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
3 import sys |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
4 sys.path.append('/my/proj/release') |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
5 from serv_tasks import serv_tasks |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
6 |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
7 ns = Collection() |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
8 |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
9 coll = Collection('announce') |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
10 ns.add_collection(coll) |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
11 serv_tasks(coll, 'serv.n3', 'announce') |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
12 |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
13 coll = Collection('tts') |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
14 ns.add_collection(coll) |
f70514b127d2
service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff
changeset
|
15 serv_tasks(ns, 'serv.n3', 'tts_server') |