summaryrefslogtreecommitdiff
path: root/client/mic.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-05-27 23:25:31 -0700
committerschneefux <schneefux+commit@schneefux.xyz>2014-05-27 23:26:17 -0700
commitc1a49a4b925abfd10f4a6faa85d8afe9689bdd4c (patch)
treefbfdab168ec5cfde4a26c09795af5501420ac76d /client/mic.py
parent77f96c260f7232cefc77054f2d2bb938072b3c57 (diff)
downloadjasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.tar.gz
jasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.zip
moved static assets to separate folder
Diffstat (limited to 'client/mic.py')
-rw-r--r--client/mic.py6
1 files changed, 3 insertions, 3 deletions
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)