From 526f86a138a2145c4342e76e2d7dd795f60013a7 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 27 Jul 2014 00:14:17 +0000 Subject: Cleanup before pull request. --- .gitignore | 2 -- client/conversation.py | 1 - client/mic.py | 1 - client/notifier.py | 4 ++-- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 64e06fa..08cf7c5 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,6 @@ client/say.wav *.swp server/modules/build/* client/build/* -client/modules/* -client/modules-bak/* client/profile.yml build/* server/dump.rdb diff --git a/client/conversation.py b/client/conversation.py index 9f7cc22..bad5073 100755 --- a/client/conversation.py +++ b/client/conversation.py @@ -51,7 +51,6 @@ class Conversation(object): if threshold: input = self.mic.activeListen(threshold) - print "I just heard '%s'" % input if input: self.delegateInput(input) else: diff --git a/client/mic.py b/client/mic.py index 4798790..8d66053 100644 --- a/client/mic.py +++ b/client/mic.py @@ -180,7 +180,6 @@ class Mic: """ AUDIO_FILE = "active.wav" - #RATE = 16000 RATE = 44100 CHUNK = 1024 LISTEN_TIME = 12 diff --git a/client/notifier.py b/client/notifier.py index 5e33c5b..341ae04 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -1,5 +1,5 @@ import Queue -#from modules import Gmail +from modules import Gmail from apscheduler.scheduler import Scheduler import logging logging.basicConfig() @@ -24,7 +24,7 @@ class Notifier(object): ] sched = Scheduler() - #sched.start() + sched.start() sched.add_interval_job(self.gather, seconds=30) def gather(self): -- cgit v1.3.1