Skip to content

Commit

Permalink
Merge pull request #97 from dag0310/master
Browse files Browse the repository at this point in the history
Added personalized greeting
  • Loading branch information
Charles Marsh committed Jul 5, 2014
2 parents 6a9db67 + 45bb987 commit 659e276
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def isLocal():
mic = Mic("languagemodel.lm", "dictionary.dic",
"languagemodel_persona.lm", "dictionary_persona.dic")

mic.say("How can I be of service?")
addendum = ""
if 'first_name' in profile:
addendum = ", %s" % profile["first_name"]
mic.say("How can I be of service%s?" % addendum)

conversation = Conversation("JASPER", mic, profile)

Expand Down

0 comments on commit 659e276

Please sign in to comment.