diff options
Diffstat (limited to 'client/mic.py')
| -rw-r--r-- | client/mic.py | 6 |
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) |
