From ae0b469d25e3b9136a243876004b34ebc546c642 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 12 Jun 2014 21:36:51 +0200 Subject: Make Jasper mention the user's name when asking "How can I be of service?" --- client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index c5805c4..75ee9f6 100644 --- a/client/main.py +++ b/client/main.py @@ -23,7 +23,7 @@ if __name__ == "__main__": mic = Mic("languagemodel.lm", "dictionary.dic", "languagemodel_persona.lm", "dictionary_persona.dic") - mic.say("How can I be of service?") + mic.say("How can I be of service, %s?" % (profile["first_name"])) conversation = Conversation("JASPER", mic, profile) -- cgit v1.3.1 From 9a4ae0f32f1aa422264eab55c88304b04aae50d5 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 12 Jun 2014 22:36:33 +0200 Subject: Check if first_name is set for profile beforehand --- client/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index 75ee9f6..0b29c75 100644 --- a/client/main.py +++ b/client/main.py @@ -23,7 +23,10 @@ if __name__ == "__main__": mic = Mic("languagemodel.lm", "dictionary.dic", "languagemodel_persona.lm", "dictionary_persona.dic") - mic.say("How can I be of service, %s?" % (profile["first_name"])) + 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) -- cgit v1.3.1 From 32c07f1c4d08710c8ce7a80fb94c5fe75b616d92 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 5 Jul 2014 09:55:20 -0700 Subject: Added note on Contributing.md to readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 836ae08..443b485 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,13 @@ jasper-client Client code for the Jasper voice computing platform. Jasper is an open source platform for developing always-on, voice-controlled applications. -Learn more at [jasperproject.github.io](http://jasperproject.github.io/), where we have assembly and installation instructions, as well as extensive documentation. +Learn more at [jasperproject.github.io](http://jasperproject.github.io/), where we have assembly and installation instructions, as well as extensive documentation. For the relevant disk image, please visit [SourceForge](http://sourceforge.net/projects/jasperproject/). + +## Contributing + +If you'd like to contribute to Jasper, we've created a Contributing Guide, available [here](https://github.com/jasperproject/jasper-client/blob/master/CONTRIBUTING.md). It outlines the philosophies to preserve, tests to run, and more. If you're looking for potential features to build, we've included some recommendations there as well. + +We highly recommend reading through this guide before writing any code. Thanks in advance for any and all work you contribute to Jasper! ## Contact -- cgit v1.3.1 From 39156bc6127314ea417b2b6d556150321b75cd82 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 11 Jul 2014 09:40:18 -0700 Subject: noting audio output update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 443b485..b2316e9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ We highly recommend reading through this guide before writing any code. Thanks i Jasper is developed by [Shubhro Saha](http://www.princeton.edu/~saha/) and [Charles Marsh](http://www.princeton.edu/~crmarsh/). Both can be reached by email at [saha@princeton.edu](mailto:saha@princeton.edu) and [crmarsh@princeton.edu](mailto:crmarsh@princeton.edu) respectively. ## Major Updates - +- 2014-07-11: More platform-independent audio output. https://github.com/jasperproject/jasper-client/pull/100. Thank you, astahlman! - 2014-05-27: The network setup wizard has been removed because of unreliability. The client code and documentation has been updated, requiring new users to manually configure their `/etc/network/interfaces` file. ## License @@ -43,4 +43,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. -- cgit v1.3.1 From 10a57e25f29bd4cdf8caf50d1ebeff20ac506b9d Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 20 Jul 2014 17:19:53 -0700 Subject: fixing local mic with additional speaker argument --- client/local_mic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/local_mic.py b/client/local_mic.py index 3fc742e..dee7669 100644 --- a/client/local_mic.py +++ b/client/local_mic.py @@ -8,7 +8,7 @@ implementation, Jasper is always active listening with local_mic. class Mic: prev = None - def __init__(self, lmd, dictd, lmd_persona, dictd_persona): + def __init__(self, speaker, lmd, dictd, lmd_persona, dictd_persona): return def passiveListen(self, PERSONA): -- cgit v1.3.1