From c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 27 May 2014 23:25:31 -0700 Subject: moved static assets to separate folder --- client/mic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/mic.py') diff --git a/client/mic.py b/client/mic.py index 71f49ab..d746ba1 100644 --- a/client/mic.py +++ b/client/mic.py @@ -237,7 +237,7 @@ class Mic: if THRESHOLD == None: THRESHOLD = self.fetchThreshold() - os.system("aplay -D hw:1,0 beep_hi.wav") + os.system("aplay -D hw:1,0 ../static/audio/beep_hi.wav") # prepare recording stream audio = pyaudio.PyAudio() @@ -267,7 +267,7 @@ class Mic: if average < THRESHOLD * 0.8: break - os.system("aplay -D hw:1,0 beep_lo.wav") + os.system("aplay -D hw:1,0 ../static/audio/beep_lo.wav") # save the audio data stream.stop_stream() @@ -287,7 +287,7 @@ class Mic: return self.transcribe(AUDIO_FILE, MUSIC=True) return self.transcribe(AUDIO_FILE) - + def say(self, phrase, OPTIONS=" -vdefault+m3 -p 40 -s 160 --stdout > say.wav"): # alter phrase before speaking phrase = alteration.clean(phrase) -- cgit v1.3.1