diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-05-27 23:25:31 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-05-27 23:26:17 -0700 |
| commit | c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c (patch) | |
| tree | fbfdab168ec5cfde4a26c09795af5501420ac76d /boot | |
| parent | 77f96c260f7232cefc77054f2d2bb938072b3c57 (diff) | |
| download | jasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.tar.gz jasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.zip | |
moved static assets to separate folder
Diffstat (limited to 'boot')
| -rwxr-xr-x | boot/boot.py | 8 | ||||
| -rw-r--r-- | boot/say.wav | bin | 151944 -> 0 bytes |
2 files changed, 4 insertions, 4 deletions
diff --git a/boot/boot.py b/boot/boot.py index ebe6b35..b042004 100755 --- a/boot/boot.py +++ b/boot/boot.py @@ -6,9 +6,9 @@ import yaml import vocabcompiler -def say(phrase, OPTIONS = " -vdefault+m3 -p 40 -s 160 --stdout > say.wav"): +def say(phrase, OPTIONS = " -vdefault+m3 -p 40 -s 160 --stdout > ../static/audio/say.wav"): os.system("espeak " + json.dumps(phrase) + OPTIONS) - os.system("aplay -D hw:1,0 say.wav") + os.system("aplay -D hw:1,0 ../static/audio/say.wav") def configure(): try: @@ -20,9 +20,9 @@ def configure(): print "STARTING CLIENT PROGRAM" os.system("/home/pi/jasper/client/start.sh &") - + except: - + print "COULD NOT CONNECT TO NETWORK" say("Hello, I could not connect to a network. Please read the documentation to configure your Raspberry Pi.") os.system("sudo shutdown -r now") diff --git a/boot/say.wav b/boot/say.wav Binary files differdeleted file mode 100644 index d27c7dc..0000000 --- a/boot/say.wav +++ /dev/null |
