summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xboot/boot.py3
-rw-r--r--client/mic.py4
-rw-r--r--client/speaker.py2
3 files changed, 5 insertions, 4 deletions
diff --git a/boot/boot.py b/boot/boot.py
index fcaeedd..245bd4d 100755
--- a/boot/boot.py
+++ b/boot/boot.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-import os, sys
+import os
+import sys
import urllib2
import yaml
import vocabcompiler
diff --git a/client/mic.py b/client/mic.py
index 0c41df9..f14ebc6 100644
--- a/client/mic.py
+++ b/client/mic.py
@@ -27,7 +27,7 @@ class Mic:
Initiates the pocketsphinx instance.
Arguments:
- speaker -- used to output audio
+ speaker -- handles platform-independent audio output
lmd -- filename of the full language model
dictd -- filename of the full dictionary (.dic)
lmd_persona -- filename of the 'Persona' language model (containing, e.g., 'Jasper')
@@ -268,7 +268,7 @@ class Mic:
if average < THRESHOLD * 0.8:
break
- self.speaker.playSound("beep_lo.wav")
+ self.speaker.playSound("../static/audio/beep_lo.wav")
# save the audio data
stream.stop_stream()
diff --git a/client/speaker.py b/client/speaker.py
index 304b426..f2d4ab7 100644
--- a/client/speaker.py
+++ b/client/speaker.py
@@ -1,5 +1,5 @@
"""
-A Speaker handles output from Jasper to the user.
+A Speaker handles audio output from Jasper to the user
"""
import os, json