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 /client | |
| parent | 77f96c260f7232cefc77054f2d2bb938072b3c57 (diff) | |
| download | jasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.tar.gz jasper-client-c1a49a4b925abfd10f4a6faa85d8afe9689bdd4c.zip | |
moved static assets to separate folder
Diffstat (limited to 'client')
| -rw-r--r-- | client/JOKES.txt | 47 | ||||
| -rw-r--r-- | client/beep_hi.wav | bin | 37656 -> 0 bytes | |||
| -rw-r--r-- | client/beep_lo.wav | bin | 37100 -> 0 bytes | |||
| -rw-r--r-- | client/mic.py | 6 | ||||
| -rw-r--r-- | client/modules/Joke.py | 2 |
5 files changed, 4 insertions, 51 deletions
diff --git a/client/JOKES.txt b/client/JOKES.txt deleted file mode 100644 index adfb0e3..0000000 --- a/client/JOKES.txt +++ /dev/null @@ -1,47 +0,0 @@ -little old lady -wow... I didn't know you could yodel... get it... because it sounded like you were yodeling - -oink oink -make up your mind... are you a pig or an owl... get it... because an owl goes who but a pig goes oink... oink - -cows go -no... cows go moo... didn't you know - -jarvis -jarvis... it's me you idiot - -me -no... seriously... it's just me... I was telling a knock knock joke ha ha ha - -madam -my damn foot got stuck in the door, so open it he he he... but actually... I think I hurt my foot - -doris -door is locked... that's why I'm knocking, you idiot - -cash -no thanks... but I would like a peanut instead... get it? because you said cashew... ha ha ha - -orange -orange you glad I am your friend - -alex -I'll ask the questions around here, thank you - -viper -viper nose... it's running - -canoe -can you scratch my back... it itches - -pete -pizza delivery guy... you idiot - -doctor -that is the best show ever - -arizona -arizona room for only one of us in this room - -spider -in spider what everyone says, I still feel like a human diff --git a/client/beep_hi.wav b/client/beep_hi.wav Binary files differdeleted file mode 100644 index 1d6593f..0000000 --- a/client/beep_hi.wav +++ /dev/null diff --git a/client/beep_lo.wav b/client/beep_lo.wav Binary files differdeleted file mode 100644 index 0afb29a..0000000 --- a/client/beep_lo.wav +++ /dev/null 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) diff --git a/client/modules/Joke.py b/client/modules/Joke.py index 454280c..52b3eb9 100644 --- a/client/modules/Joke.py +++ b/client/modules/Joke.py @@ -4,7 +4,7 @@ import re WORDS = ["JOKE", "KNOCK KNOCK"] -def getRandomJoke(filename="JOKES.txt"): +def getRandomJoke(filename="../static/text/JOKES.txt"): jokeFile = open(filename, "r") jokes = [] start = "" |
