view 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
line wrap: on
line source

from invoke import task, Collection

import sys
sys.path.append('/my/proj/release')
from serv_tasks import serv_tasks

ns = Collection()

coll = Collection('announce')
ns.add_collection(coll)
serv_tasks(coll, 'serv.n3', 'announce')

coll = Collection('tts')
ns.add_collection(coll)
serv_tasks(ns, 'serv.n3', 'tts_server')