deleted useless files

master
Nadine Rotem-Stibbe 8 years ago
parent 3ef1b59c91
commit 0a2a7346b0

@ -1,7 +1,6 @@
#N canvas 617 41 665 546 10; #N canvas 191 155 665 546 10;
#X obj 168 326 tabread4~ drone; #X obj 168 326 tabread4~ drone;
#X floatatom 168 266 5 0 0 0 - - -, f 5; #X floatatom 168 266 5 0 0 0 - - -, f 5;
#X obj 244 271 *~ 668457;
#X obj 267 232 phasor~; #X obj 267 232 phasor~;
#X obj 244 196 sig~; #X obj 244 196 sig~;
#X floatatom 252 29 5 0 0 0 - - -, f 5; #X floatatom 252 29 5 0 0 0 - - -, f 5;
@ -13,7 +12,6 @@
#X msg 223 403 0; #X msg 223 403 0;
#X obj 335 17 inlet; #X obj 335 17 inlet;
#X obj 394 211 != 0; #X obj 394 211 != 0;
#X obj 307 132 *;
#X obj 356 300 line, f 6; #X obj 356 300 line, f 6;
#X floatatom 357 354 5 0 0 0 - - -, f 5; #X floatatom 357 354 5 0 0 0 - - -, f 5;
#X obj 375 238 select 1 0; #X obj 375 238 select 1 0;
@ -21,28 +19,34 @@
#X msg 352 266 1 200; #X msg 352 266 1 200;
#X msg 404 266 0 100; #X msg 404 266 0 100;
#X msg 302 76 \$1 200; #X msg 302 76 \$1 200;
#X obj 305 49 / 2; #X obj 307 132 +;
#X connect 0 0 9 0; #X obj 305 49 * 0.01;
#X floatatom 326 174 5 0 0 0 - - -, f 5;
#X floatatom 408 125 5 0 0 0 - - -, f 5;
#X obj 244 271 *~ 334228;
#X connect 0 0 8 0;
#X connect 1 0 0 0; #X connect 1 0 0 0;
#X connect 2 0 0 0; #X connect 2 0 24 0;
#X connect 3 0 2 0; #X connect 3 0 2 0;
#X connect 4 0 3 0; #X connect 4 0 3 0;
#X connect 5 0 4 0; #X connect 6 0 3 0;
#X connect 7 0 4 0; #X connect 7 0 20 1;
#X connect 8 0 14 1; #X connect 7 0 23 0;
#X connect 9 0 6 0; #X connect 8 0 5 0;
#X connect 10 0 9 1; #X connect 9 0 8 1;
#X connect 11 0 9 1; #X connect 10 0 8 1;
#X connect 12 0 13 0; #X connect 11 0 12 0;
#X connect 12 0 22 0; #X connect 11 0 21 0;
#X connect 13 0 17 0; #X connect 12 0 15 0;
#X connect 14 0 4 0; #X connect 13 0 8 1;
#X connect 15 0 9 1; #X connect 13 0 14 0;
#X connect 15 0 16 0; #X connect 15 0 17 0;
#X connect 17 0 19 0; #X connect 15 1 18 0;
#X connect 17 1 20 0; #X connect 16 0 20 0;
#X connect 18 0 14 0; #X connect 17 0 13 0;
#X connect 19 0 15 0; #X connect 18 0 13 0;
#X connect 20 0 15 0; #X connect 19 0 16 0;
#X connect 21 0 18 0; #X connect 20 0 3 0;
#X connect 22 0 21 0; #X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 24 0 0 0;

@ -1,35 +0,0 @@
#! /usr/bin/env python
import re, subprocess, random
from time import sleep
# requires: espeak to be installed
dic={
"narrator": "en-us",
}
f=open("detail_of_attack.txt","r")
txt=f.readlines()
for line in txt:
print line
# play time
subprocess.call(["espeak", "-v", dic['narrator'], "-p", "20"]) # narrator speaks: time and character
sleep(0.5) #short pause before sentence
print sentence
if "*CLASSIFIED*" in sentence: #"*expletive*" in sentence is True:
sentence_parts=re.split(r"(\*\w+\*)", sentence)
print sentence_parts
for part in sentence_parts:
if part == '*CLASSIFIED*':
print 'EXPLETIVE', part
subprocess.call(["aplay", 'swear.wav'])
else:
print 'SPEECH', part
subprocess.call(["espeak", part, "-v", voice]) # character speaks: his
sleep(float(random.randint(1,10))/100)
else: # line w/out time or character (narrator)
print "NARRATOR"
subprocess.call(["espeak", line, "-v", dic['narrator'], "-p", "20"])
sleep(1) # make pause after each text line
Loading…
Cancel
Save