question

Chris avatar image
Chris asked ·

Raspberry Pi Issues

Hello Everyone, I am very excited to get this working on my Raspberry Pi 2! I have been usually the echo for quite some time and I thought it was a great project.. I have followed the guide on git very step by step, however when I run npm start, I get this error, pi@raspberrypi:~/Documents/alexa-avs-raspberry-pi-master/samples/companionService $ npm start npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. > alexa-voice-service-sample-companion-service@1.0.0 start /home/pi/Documents/alexa-avs-raspberry-pi-master/samples/companionService > node ./bin/www This node service needs to be running to store token information memory and vend them for the AVS app. fs.js:439 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: ENOENT, no such file or directory '/home/pi/Documents/alexa-avs-raspberry-pi-master/samples/javaclient/certs/ca/ca/crt' at Object.fs.openSync (fs.js:439:18) at Object.fs.readFileSync (fs.js:290:15) at Object. (/home/pi/Documents/alexa-avs-raspberry-pi-master/samples/companionService/bin/www:23:12) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:945:3 npm ERR! alexa-voice-service-sample-companion-service@1.0.0 start: `node ./bin/www` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the alexa-voice-service-sample-companion-service@1.0.0 start script. npm ERR! This is most likely a problem with the alexa-voice-service-sample-companion-service package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./bin/www npm ERR! You can get their info via: npm ERR! npm owner ls alexa-voice-service-sample-companion-service npm ERR! There is likely additional logging output above. npm ERR! System Linux 4.1.19-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start" npm ERR! cwd /home/pi/Documents/alexa-avs-raspberry-pi-master/samples/companionService npm ERR! node -v v0.10.43 npm ERR! npm -v 1.4.29 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/Documents/alexa-avs-raspberry-pi-master/samples/companionService/npm-debug.log npm ERR! not ok code 0 pi@raspberrypi:~/Documents/alexa-avs-raspberry-pi-master/samples/companionService $ If there is any info you need or any advice, it would be greatly appreciated!
alexa voice service
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Chris avatar image
Chris answered ·
There was in an error with one of my paths! I got it for now!! Thanks!
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon Customer avatar image
Amazon Customer answered ·
I'm getting the same error on my pi. What path did you change and where to get it to work?
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Eric@Amazon avatar image
Eric@Amazon answered ·
'/home/pi/Documents/alexa-avs-raspberry-pi-master/samples/javaclient/certs/ca/ca/crt' The end of that path should be ca.crt, not ca/crt
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

MettaKaruna avatar image
MettaKaruna answered ·
I have Echo on a Pi3b, but having initially tried the novaspirit version https://github.com/novaspirit/AlexaPi which it seemed benefited a physical button for on/off voice via gpio etc, also just a single command to get it running once installed. (python main.py) Main issues which I would like some help with are: 1/ Starting Alexa "simply"? 2/ Can this version be triggered by gpio? 3/ Seems impossible to use a Bluetooth speaker but that might be a Raspberry Pi issue but noted blue being uninstalled during installation?
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Eric@Amazon avatar image
Eric@Amazon answered ·
Unfortunately, while that github project is impressive, it has a number of issues (due to being forked from sammachin/AlexaPi). For instance, one of those issues is that it doesn't actually parse any JSON provided by AVS (some of which tell it how to play music). If you want a fully-featured Alexa on your Raspberry Pi, I highly suggest the official guide to putting the sample reference app on your Pi: https://github.com/amzn/alexa-avs-raspberry-pi From there, you can probably modify the reference code to allow GPIO events to trigger the listening (here's a Java GPIO library: http://pi4j.com/example/listener.html). As far as bluetooth, there's nothing about AVS that prevents bluetooth - that's just something that you'll need to set up on the Raspberry Pi. It seems as though the instructions to set it up are reasonably simple: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138145 Good luck hacking!
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Raja avatar image
Raja answered ·

I use the microphone built into a USB camera with an RPi3. The mic works fine, I am able to record audio with

arecord -D plughw:1,0 -f cd test.wav

But when I click the button on the Java client, it waits for several seconds and then reports a time out exception. Any idea how to solve this ? Note: I live in India. Could it be a problem ?

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.