diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-21 13:11:56 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-21 13:11:56 -0700 |
| commit | 18c02563c04f77e1732194d74e537787247918b9 (patch) | |
| tree | 8e30b1e5f2375904adacc76b19ce46b075677b16 | |
| parent | 84a92e5327997815488276021e5498f7681ab2d7 (diff) | |
| download | jasper-client-18c02563c04f77e1732194d74e537787247918b9.tar.gz jasper-client-18c02563c04f77e1732194d74e537787247918b9.zip | |
Clean up before pull request.
| -rwxr-xr-x | boot/boot.py | 3 | ||||
| -rw-r--r-- | client/mic.py | 4 | ||||
| -rw-r--r-- | client/speaker.py | 2 |
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 |
