Installing Jasper

I have a number of RPI’s around my home all running OSMC. I recently found the open source voice recognition software Jasper and thought it would be really cool to install it on all of my RPI’s so that I could control my Home Automation by voice from anywhere around the home. The HA software I’m running is also open source and runs an api, so controlling it via Jasper is a straight forward process.

Last night I had a quick go at installing the software on one of my RPI’s and had no luck. I know Sam has stripped out what isn’t needed to for OSMC so wasn’t expecting an easy ride. Has anyone else installed Jasper on an OSMC install?

Regards,

Garry

looks pretty straight forward when looking at their documentation

http://jasperproject.github.io/documentation/installation/#install-jasper

you already can control via voice command by using yatse without installing alot of software.

If it were that simple I’d not have posted anything on here. The main part is that the ALSA configuration that’s mentioned in the install documentation isn’t there. So I’m guessing that as it’s not needed for OSMC then other components are also missing.

I’m not after voice control of OSMC, I’m going to use the voice recognition for my Home Automation.

Let me add a little more information.

The first issue I’ve come across is that there is no /etc/modprobe.d/alsa-base.conf. Which means I can’t add this line; options snd-usb-audio index=0

When I try the arecord temp.wav this is the output;

ALSA lib confmisc.c:768:(parse_card) cannot find card ‘0’
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
arecord: main:722: audio open error: No such file or directory

Anyone with more Linux knowledge than me care to advise?

Thanks,

Garry

It’s suspected that the file you are looking for is located in /usr/share/alsa/alsa.conf. Its not called alsa-base.conf just alsa.conf.

Topman thanks for the pointer, however there is no line in the conf file; options snd-usb-audio index=-2 so can’t change it to; options snd-usb-audio index=0.

Do I just add the line and reload?

Thanks

Garry

Just in case anybody finds this, after posting in the support forum of Jasper I was contacted by Mark who provided me with this notes for Installing Jasper

They may help others.

Cheers,

Garry