view service/playSound/tasks.py @ 1512:1e9cfec1be78

don't require first arg on PatchedGraph.serialize Ignore-this: bc695823e03dbd012e03efa4e40b6aca darcs-hash:1dbf9271b5ca55c78987c474ef223af9d5b811d2
author drewp <drewp@bigasterisk.com>
date Mon, 03 Feb 2020 23:46:29 -0800
parents bf05f33c3b3a
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()
serv_tasks(ns, 'serv.n3', 'speechmusic_dash')


'''
pactl_test: build_image
	docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} pactl stat

paplay_test_that_is_loud: build_image
	docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} paplay /usr/local/lib/python2.7/dist-packages/pygame/examples/data/whiff.wav

pygame_test: build_image
	docker run --rm -it --cap-add SYS_PTRACE --net=host -e SDL_AUDIOSERVER=pulseaudio -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} python -c  'import os; print os.environ; import pygame.mixer; pygame.mixer.init()'


local_run: build_image
	docker run --rm -it -p ${PORT}:${PORT} \
          --name=$(JOB)_local \
          --net=host \
	  --mount type=tmpfs,destination=/tmp,tmpfs-size=52428800 \
          -v /tmp/pulseaudio:/tmp/pulseaudio \
          ${TAG} \
          python playSound.py -v
'''