Created
September 9, 2014 15:49
-
-
Save charliermarsh/fc4ff8c921d0f6814c3f to your computer and use it in GitHub Desktop.
Jasper offline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import vocabcompiler | |
lib_path = os.path.abspath('../client') | |
sys.path.append(lib_path) | |
import speaker as speak | |
speaker = speak.newSpeaker() | |
def configure(): | |
print "COMPILING DICTIONARY" | |
vocabcompiler.compile( | |
"../client/sentences.txt", "../client/dictionary.dic", "../client/languagemodel.lm") | |
print "STARTING CLIENT PROGRAM" | |
os.system("$JASPER_HOME/jasper/client/start.sh &") | |
if __name__ == "__main__": | |
print "==========STARTING JASPER CLIENT==========" | |
print "==========================================" | |
print "COPYRIGHT 2013 SHUBHRO SAHA, CHARLIE MARSH" | |
print "==========================================" | |
speaker.say("Hello.... I am Jasper... Please wait one moment.") | |
configure() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment