annotate service/announce/tasks.py @ 670:f70514b127d2

service that calls for TTS audio then serves it to chromecasts and to playAudio services Ignore-this: 4ede3d6eb6b35096f70fc35ffe5c7a07
author drewp@bigasterisk.com
date Sun, 22 Dec 2019 00:35:58 -0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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')