Web site for general information and documentation
jasperproject / jasperproject.github.io Goto Github PK
View Code? Open in Web Editor NEWWeb site for general information and documentation
Web site for general information and documentation
All of the Raspberry PI Model B+ download links are dead. Can the image not be hosted on github?
Hi,
I tried to set it up today, it doesn't work. I have a raspberry pi with the edimax plug into it. I flash the SD card with the image you recommended. I turn on the raspberry pi for the first time and I get the error...
"[FAIL] check syslog for diagnostics. ... failed!"
"[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!"
This is the error I get on the brand new image with the wifi dongle that's known to work with raspberry pi.
Any idea of what should I do to fix this?
Cheers,
Mickey
sudo ./compile-fst.sh
fstcompile --ssymbols=g014b2b.ssyms --isymbols=g014b2b.isyms --keep_isymbols --osymbols=g014b2b.osyms --keep_osymbols g014b2b.fst.txt > g014b2b.fst
ERROR: fstcompile: Open failed, file = g014b2b.fst.txt
Please do help me as i am a newbee
After configuring Jasper, tried starting Jasper by
/home/pi/jasper/jasper.py
but ended up with error (see below)
*******************************************************
* JASPER - THE TALKING COMPUTER *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/kidde-ubuntu/pi/jasper/jasper.py", line 143, in <module>
app = Jasper()
File "/home/kidde-ubuntu/pi/jasper/jasper.py", line 77, in __init__
self.config = yaml.safe_load(f)
File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
return loader.get_single_data()
File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected <block end>, but found %r" % token.id, token.start_mark)
ParserError: while parsing a block mapping
in "/home/kidde-ubuntu/.jasper/profile.yml", line 1, column 1
expected <block end>, but found '<scalar>'
in "/home/kidde-ubuntu/.jasper/profile.yml", line 11, column 11
What should I do?
Thank you all for you support in advance
Hi, is Italian supported ?
So I have a fresh build of arch on the rpi2 and trying to build pocketsphinx (or any stt for that matter). I keep hitting an error for the dependency cmuclmtk
and m2m-aligner
that is needed under the package build for pocketsphinx, and all the other stt engines through the AUR, saying it doesn't support armv6h. I even tried just building sphinx and ran into this problem. The website suggests that Jasper was built for use with the pi but I keep running into arm errors. Is there another suggested stt engine that I can use without this dependency? Or another way to build?
I installed arch with these instructions
Links here for downloading the image return 404 http://jasperproject.github.io/documentation/software/#quick-start
It looks like the whole Sourceforge project is gone http://sourceforge.net/projects/jasperproject
"ERROR:root:Error occured!
Traceback (most recent call last):
File "./jasper.py", line 143, in
app = Jasper()
File "./jasper.py", line 106, in init
stt_passive_engine_class.get_passive_instance(),
File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/home/pi/jasper/client/stt.py", line 34, in get_instance
config = cls.get_config()
File "/home/pi/jasper/client/stt.py", line 235, in get_config
if 'hmmdefs' in profile['julius']:
TypeError: argument of type 'NoneType' is not iterable"
This is the error im getting when running jasper through jasper.py
and if I run it through main.py a similar error occurs.
Can anyone help me please?
i want to ask about jasper i am about a week to get jasper to work i dont get it to work becaurse files like
this When i run the command "sudo apt-get -t experimental install phonetisaurus m2m-aligner mitlm" i get the following error: http://pastebin.com/yFFjWuwe
I tried downloading the sources and compiling on the Pi, but when i try to download phonetisaurus i get a 404 error, the link is probably outdated.
can you helping me
I haven't found much documentation about having separate STT engines for passive/active mode.
It seems ideal to have a simple/offline STT (e.g. Sphinx) passively listen for a programmable wake-up word (e.g. "Jasper"). Then it would active listen using a different STT such as Google Speech API. There could be separate passive/active fields in the profile.yml file.
Correct me if I'm wrong, but it seems Jasper currently uses the same STT for both passive and active listening?
pi@raspberrypi:~ $ sudo pip install --upgrade setuptools
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1097, in prepare_files
req_to_install, self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: str returned non-string (type Error)
Storing debug log for failure in /root/.pip/pip.log
pi@raspberrypi:~ $ sudo pip install -r jasper/client/requirements.txt
Downloading/unpacking APScheduler==3.0.1 (from -r jasper/client/requirements.txt (line 2))
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: str returned non-string (type Error)
Storing debug log for failure in /root/.pip/pip.log
I will burn the latest Jasper build to my Pi tonight.
From: http://jasperproject.github.io/documentation/faq
'Does Jasper work with two-factor email authentication?
Unfortunately, no. If you use two-factor authentication for your Gmail, there’s currently no way to integrate it with Jasper (although this would be a welcome pull request!).'
What about the use of an application specific password? I will make an attempt tonight if I do not see a response before then.
Support article: https://support.google.com/mail/answer/1173270?hl=en
While reading the website, one gets the impression that Jasper sends all collected voice data to someone online, which is a big trade-off even compared to Jasper's awesome functionality.
I read through almost all of the website, looking for a note about what would happen to my data:
Maybe you could add an FAQ entry like "What happens to the data collected by Jasper?", mentioning what really happens to always-on voice data in CMUSphinx, third-party service credentials, request history etc. (Something that replies to "Can a company / government entity listen in with Jasper"?).
Would be great to have this under a tab on the left
looks like in the new jessie version of the os the config file mentioned on this page under configuring raspbian is now located here: /usr/share/alsa/alsa.conf
The manual instructions in the "Manual Installation" section instruct to download the /usr/local/lib, /usr/local/bin and phonetisaurus binaries. I see several issues.
I looked into the usrlocalbin_binaries.tar.gz file and the content seems to be binaries from the CMU-Cambridge Statistical Language Modeling Toolkit V2. If so, then they are distributed under the following conditions:
/*=====================================================================
======= COPYRIGHT NOTICE =======
Copyright (C) 1996, Carnegie Mellon University, Cambridge University,
Ronald Rosenfeld and Philip Clarkson.
All rights reserved.
This software is made available for research purposes only. It may be
redistributed freely for this purpose, in full or in part, provided
that this entire copyright notice is included on any copies of this
software and applications and derivations thereof.
This software is provided on an "as is" basis, without warranty of any
kind, either expressed or implied, as to any matter including, but not
limited to warranty of fitness of purpose, or merchantability, or
results obtained from use of this software.
======================================================================*/
You at least violate the condition that the entire copyright noticed must be included in any copies of the software. I can't see such a notice in the usrlocalbin_binaries.tar.gz file.
I can make a similar argument for the content of the usrlocallib_binaries.tar.gz tarball which seems to contain binaries from the packages mitlm (MIT), pocketsphinx (BSD) and phonetisaurus (BSD) which all require at least attribution.
Since I find it unlikely that you are the copyright holder of all the software I mentioned above, I thought it was prudent to notify you that you infrince of the respective copyright owners licenses by distributing the binaries in the current form.
Additionally, why do you instruct to manually compile pocketsphinx and sphinxbase? Both packages are in Debian and you dont need to recompile them.
Coming to my original goal of this bugreport: could you please document how all binaries (except for those from Debian packages) are created? Given that mitlm, pocketsphinx and phonetisaurus are in Debian, this should only boil down to documenting how you generated the binaries for the CMU-Cambridge Statistical Language Modeling Toolkit V2.
Sadly the CMU-Cambridge Statistical Language Modeling Toolkit V2 is released under a research-only license which means that I can't use jasper for anything else than research. It is sad, that the media portraits it as if jasper could be used for home automation but I doubt that private home automation falls under "research purposes".
Is there a way to use jasper without the CMU-Cambridge Statistical Language Modeling Toolkit V2? Otherwise jasper can only ever be a cool tech demo but never be used outside university.
Hi,
I would like to know if you are considering the support of Philips Hue by Jasper?
Thanks
I'd like to see a complete listing for the settings in profile.yml to help troubleshoot when it couldn't find a location while running the profiler.
You should review the links on hardware guide. Some of them are broken, others point to unavailable products.
Hello,
can use jasper on ubuntu ?
thanks
Hi everyone,
I think that the record compression is wrong in jasper... With simple arecord test i ear a lot of noise... sO i would change this by set default sl16, or something like that, throw .asound file but i dont know how do that...
In any case after a lot of try jasper recognize "jasper" from my voice... But nothing happen... I use wit.ai ad start with denug mode...
Can anyone help me?
Many users, especially beginners, will have arrived at this reference (in the Install Guide) by Method 1. In this case, they are using whatever version of Debian was provided in the image file, and they won't know which. So this condition is simply confusing.
pi@raspberrypi:~/g014b2b $ /home/pi/jasper/jasper.py
JASPER - THE TALKING COMPUTER *
ERROR:client.g2p:Command 'phonetisaurus-g2p --model=/home/pi/phonetisaurus/g014b2b.fst --input=/tmp/tmpKHonAt.g2p --words --isfile' return with exit status -11
ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
Traceback (most recent call last):
File "/home/pi/jasper/client/vocabcompiler.py", line 163, in compile
self._compile_vocabulary(phrases)
File "/home/pi/jasper/client/vocabcompiler.py", line 271, in _compile_vocabulary
self._compile_dictionary(vocabulary, self.dictionary_file)
File "/home/pi/jasper/client/vocabcompiler.py", line 321, in _compile_dictionary
phonemes = g2pconverter.translate(words)
File "/home/pi/jasper/client/g2p.py", line 130, in translate
output = self._translate_words(words)
File "/home/pi/jasper/client/g2p.py", line 119, in _translate_words
nbest=self.nbest)
File "/home/pi/jasper/client/g2p.py", line 56, in execute
raise OSError("Command execution failed")
OSError: Command execution failed
ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 146, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 109, in init
stt_passive_engine_class.get_passive_instance(),
File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/home/pi/jasper/client/stt.py", line 40, in get_instance
vocabulary.compile(phrases)
File "/home/pi/jasper/client/vocabcompiler.py", line 171, in compile
raise e
OSError: Command execution failed
This is not a real Jasper issue, but I am running out of options (I am sorry).
I am trying to combine Jasper with OpenCV functions (and others).
When I run Jasper with "asyncore".
Giving the IO 9993 error (please explain this code!!).
If I do not, it will LOCK, so unable to do anything else.
Only option is to OS.FORK and use SOCKET.
But this I do not find pretty, does anybody have any idea?
I'd like to make a module to have Jasper run nmap. I'm very new to this whole process and have been researching and trying to figure it out but it's not going well.
Could I re-work a current module to run nmap or would I have to start from scratch.
So, to summarize: I want to set up a keyword for Jasper to run nmap. Seems simple but I'm stuck. Any help would be appreciated!
When I try to get pip, it all fails when trying 2 install manually. Is there an image you guys could upload already in the squashfs format for berryboot?
The installation documentation tells us to test playback with:
aplay -D hw:1,0 temp.wav
But when I run Jasper with the --debug
param, I see that it uses plughw
instead of hw
.
I'm not entirely sure how this affects everything but I thought I'd mention it.
Loving this project so far!
Hi,
It is possible to update FAQ ?
Some answers seems to not be valid anymore and some links are broken.
Here is an example :
Can I change Jasper’s name?
Sure, you can just replace the “Jasper” name in main.py and musicmode.py.
-> Jasper need to be replace in jasper.py and musicmode.py is not present in the latest version.
Currently, following information is missing in the "Installation" docs:
options snd-usb-audio index=-2
sudo raspi-config
If you do the steps currently described, it is not possible afterwards to select the audio output with raspiconfig.
I am getting stuck on the wireless setup page since I do not have a password for my wireless router. It appears that Jasper is expecting something other than a blank field. When I enter anything other than a blank field I can proceed, but of course Jasper fails to connect to my router. Sure I can easily create a password for my router, was curious what I can change in the code to accept a blank password.
I am about to test this
----->8--------
wifi = Wifi()
wifi.add_wifi(network, "")
#############################
#wifi.add_wifi(network, password)
##############################
----->8--------
I'm using Raspbian, and using a RPi2.. perhaps this wasn't clear to me but I count Raspbian as Debian.. so when the instructions told me to just do the following :
On Debian, you can install these from the experimental repository:
sudo su -c "echo 'deb http://ftp.debian.org/debian experimental main contrib non-free' > /etc/apt/sources.list.d/experimental.list"
sudo apt-get update
sudo apt-get -t experimental install phonetisaurus m2m-aligner mitlm
I thought that would load FSTCompile, but when I got a little further I came upon an error, and had to backtrack.
May I suggest some indentation to break up these instructions? I will create A PR if that's okay.
pi@raspberrypi2 ~/g014b2b $ sh compile-fst.sh
fstcompile --ssymbols=g014b2b.ssyms --isymbols=g014b2b.isyms --keep_isymbols --osymbols=g014b2b.osyms --keep_osymbols g014b2b.fst.txt > g014b2b.fst
compile-fst.sh: 8: compile-fst.sh: fstcompile: not found
According to:
https://developers.facebook.com/docs/facebook-login/permissions/v2.1
the Facebook manage_notifications permission now requires review. This may not be a good approach to recommend to beginners moving forward, so the notification demo should be changed.
Hello! On my Ubuntu 16.04 Pinebook, the step "Build Phonetisaurus model" failed with this error:
fstcompile --ssymbols=g014b2b.ssyms --isymbols=g014b2b.isyms --keep_isymbols --osymbols=g014b2b.osyms --keep_osymbols g014b2b.fst.txt > g014b2b.fst
fstcompile: error while loading shared libraries: libfstscript.so.1: cannot open shared object file: No such file or directory
using manual instructions here:
http://jasperproject.github.io/documentation/installation/
I fixed it with sudo ldconfig
I think it would be reasonable to add this step to the instructions :)
Thanks,
Chris
my machine:
combs@pinebook:~/git/g014b2b$ uname -a
Linux pinebook 3.10.105-bsp-1.2-ayufan-77 #1 SMP PREEMPT Sun Jul 9 12:09:30 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux
It's a large file, and that way we can save sourceforge the bandwidth. I found this torrent:
http://burnbit.com/torrent/290881/jasper_disk_image_tar_gz
which seems totally legit, but I'd feel better about it if I knew the project owners had signed off on it.
Hello,
I would like to know if Jasper has support for the following;
If yes, I have 5 words in the Arabic language that I would like to use to run commands.
Is this possible?
Looking forwards to your response
How about a forum for sharing modules and other jasper based chat? I know most custom modules people want to share with end up on github anyway, but would be nice to have one place to see all of them.
Thanks for the great work so far!
It's just for academic purposes i just want to give this project a name of my own add a few things to it...
Plz help me for a student its a matter of life and death to me
http://jasperproject.github.io/documentation/hardware/
contains a link to google for results related to Airlink Mini-USB Adapter which is not working
Update in link is required
I have a problem to installation "Openfst 1.3.4"
i am looking for internet but not find out...
i use this command...
cd openfst-1.3.4/
sudo ./configure --enable-compact-fsts --enable-const-fsts --enable-far --enable-lookahead-fsts --enable-pdt
sudo make install
cd ..
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pi/openfst-1.3.4/src/lib'
make[2]: Leaving directory '/home/pi/openfst-1.3.4/src/lib'
Making install in script
make[2]: Entering directory '/home/pi/openfst-1.3.4/src/script'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I./../include -g -O2 -MT text-io.lo -MD -MP -MF .deps/text-io.Tpo -c -o text-io.lo text-io.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I./../include -g -O2 -MT text-io.lo -MD -MP -MF .deps/text-io.Tpo -c text-io.cc -fPIC -DPIC -o .libs/text-io.o
text-io.cc: In function 'bool fst::script::WritePotentials(const string&, const std::vectorfst::script::WeightClass&)':
text-io.cc:87:15: error: cannot convert 'std::ostream {aka std::basic_ostream}' to 'bool' in initialization
bool ret = *strm;
^~~~
Makefile:388: recipe for target 'text-io.lo' failed
make[2]: *** [text-io.lo] Error 1
make[2]: Leaving directory '/home/pi/openfst-1.3.4/src/script'
Makefile:260: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/pi/openfst-1.3.4/src'
Makefile:312: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
please...inform me...what i do wrong ? and what,s i have to do?
When accessing the jasperproject.github.io site through HTTPS (as is offered by github, and for example will be default when using the HTTPS Anywhere Firefox extension) the main text on the site is essentially unreadable on my system. This is because the Google Font API usage is hard coded for HTTP, which will not work when included in an HTTPS site.
This is how it looks for me:
(there are a couple of complicating factors, such as locally installed fonts, so you may not be able to reproduce this exact rendering).
Solution: When including the Google Font API, instead of using an absolute URL, use a schema-relative URL. Instead of
<!-- Fonts from Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,900' rel='stylesheet' type='text/css'>
use
<!-- Fonts from Google Fonts -->
<link href='//fonts.googleapis.com/css?family=Lato:300,400,900' rel='stylesheet' type='text/css'>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.