diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 11:57:41 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 12:00:30 +0200 |
| commit | a9f275825fa784ebc85cdcfb3aad5a7e02e7f01b (patch) | |
| tree | 85619657d3750b06145ed8460473560c0a760e48 /client | |
| parent | 14048683e29b6486aa1e680e29d78de97fc92d7d (diff) | |
| download | jasper-client-a9f275825fa784ebc85cdcfb3aad5a7e02e7f01b.tar.gz jasper-client-a9f275825fa784ebc85cdcfb3aad5a7e02e7f01b.zip | |
Use jasperpath in client/mic.py
Diffstat (limited to 'client')
| -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 3150d4e..6c428c0 100644 --- a/client/mic.py +++ b/client/mic.py @@ -8,7 +8,7 @@ from wave import open as open_audio import audioop import pyaudio import alteration - +import jasperpath class Mic: @@ -190,7 +190,7 @@ class Mic: if THRESHOLD == None: THRESHOLD = self.fetchThreshold() - self.speaker.play("../static/audio/beep_hi.wav") + self.speaker.play(jasperpath.data('audio', 'beep_hi.wav')) # prepare recording stream audio = pyaudio.PyAudio() @@ -219,7 +219,7 @@ class Mic: if average < THRESHOLD * 0.8: break - self.speaker.play("../static/audio/beep_lo.wav") + self.speaker.play(jasperpath.data('audio', 'beep_lo.wav')) # save the audio data stream.stop_stream() |
