Skip to content

Instantly share code, notes, and snippets.

@charliermarsh
Created September 9, 2014 15:49
Show Gist options
  • Save charliermarsh/fc4ff8c921d0f6814c3f to your computer and use it in GitHub Desktop.
Save charliermarsh/fc4ff8c921d0f6814c3f to your computer and use it in GitHub Desktop.
Jasper offline
#!/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