Giter Site home page Giter Site logo

alexa-pi / alexapideprecated Goto Github PK

View Code? Open in Web Editor NEW
587.0 83.0 442.0 319 KB

DEPRECATED - Use https://github.com/alexa-pi/AlexaPi instead ...Turn a Raspberry Pi into an Alexa Client

Home Page: https://github.com/alexa-pi/AlexaPi

License: MIT License

Python 79.34% Shell 20.66%

alexapideprecated's People

Contributors

cavonlee avatar ck37 avatar dojones1 avatar hkp avatar konstantinschubert avatar lennysh avatar melashkov avatar renekliment avatar sammachin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexapideprecated's Issues

Trigger Word

Do you have any plans to try and use a trigger word to activate the AVS in place of a button. I understand AVS doesn't directly support that and you would need to use another voice service on top of the AVS but it would be cool.

Initiate a Alexa request by text possible?

I'm using AlexaPi and skill kit with my home automation system and it works really well, but thinking it would be great if I could use AlexaPi to give my home automation system a voice for notifications rather than just as a responses.

Not sure, but I dont think there is a proper mechanism in the api for unsolicited messages from a skill. But if there was a way to initiate a Alexa request by text rather than audio I could generate a "Simon says " request and have AlexPi speak it out loud. Anyone know if this is possible?

Should I need to edit auth_web.py?

Thanks to the other messages here, I managed to get the Alexa files installed and working. Only hitch I ran into is auth_web kept trying to run the server on 0.0.0.0. I had to manually edit the file to include the IP address of my RaspPi. Is this normal, or does this mean I missed something?

Once I edited it, the web access works, I am just still waiting for the Amazon access to be approved.

-Z

Without button to listen?

Hi

Is there any option to not press button and Alexa listen?

Use voice command "Alexa ..."

Thanks

Alexa starts, but won't listen to input

I've successfully started Alexa, and she might be listening to input, but I don't think so. On boot, I get a 'starting Alexa' in the log, a 'hello' greeting and 3 flashes of my green LED. If I then push the button (or jumper the GPIO directly together, or start the RPi with the GPIO jumpered from GPIO18>GND and remove the jumper), my LED turns to amber for almost exactly a second and then flashes red and shuts off. This is regardless of how long I hold the button/jumper. Now I bought the button as an individual part without a spec sheet, and it has 4 poles, but I've tried all different combinations of jumping that to the GPIO18>GND with seemingly no effect. I'm not certain the microphone is working, here's my output of arecord -L:

plughw:CARD=USB,DEV=0
    Jabra BIZ 2400 USB, USB Audio
    Hardware device with all software conversions

And here's what I have in my main.py file:

#Settings
button = 18 #GPIO Pin with button connected
lights = [24, 25] # GPIO Pins with LED's conneted
device = "plughw:USB" # Name of your microphone/soundcard in arecord -L

(I tried plughw:0 and :1 and I get this error:

Traceback (most recent call last):
  File "/root/AlexaPi/main.py", line 156, in <module>
    start()
  File "/root/AlexaPi/main.py", line 124, in start
    inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, device)
alsaaudio.ALSAAudioError: No such file or directory

Thoughts, anyone?

Raspberry pi3

Hi Sam,

I get AlexaPi working on a new pi3 with the jessie-Lite but not without some workarounds.

First of all, It´s a bit confuse that you need to install it on /root as root, because by default on the Raspbian root user can´t log in. You need to login with "pi" user, then sudo bash, and go on with the install.

Then when I execute the setup.sh it does not finish properly as others said in another issue.
Finally i proceed with the "advanced" install and place the credentials IDs on the creds.py and execute the auth_web.py manually. Then I access http://myRaspIP:5000 and it show an amazon page, then just click ok and it finish properly.

Finally i start alexa via /etc/init.d/alexa and the leds blink as expected and i hear HELLO. So alexa it´s running. I´ll try some voice commands and it reply to me, so all appears to be fine.

So, first of all thank for your work.

Now my question is, on the developers area i read that you can use the android Alexa app to interact and setup alarms and other things, but even if the alexa Android app and alexa.amazon.com show my AlexaPi as a device, it always said NOT CONNECTED. I don´t know if its something i´m doing wrong or if the Alexa Pi it´s not intended to work with the Android App or even the web.

Thank for your support.

Regards.

Issue Fixed

I fixed the issue, my recording rate was 44k and the file that was being sent was 16k.

Readme tweak?

"For the ID use something like AlexaCHIP" Not AlexaPi?

python Error.. I don't know.

python Error.. I don't know. Please, help me...

pi@raspberrypi ~/Downloads/BlexaPi/AlexaPi $ python main.py

Traceback (most recent call last):
File "main.py", line 10, in
from creds import *
File "/home/pi/Downloads/BlexaPi/AlexaPi/creds.py", line 6

Music

Is is possible to get Amazon's Music Services working with the script? Could you use something like ffmpeg or vlc to stream handle the streams?

Some questions

What would it take to run this script on a normal netbook with Ubuntu LTS. Of course the button would need to be replaced with a key on the keyboard. Any chance you would support this option also, Sam?

Stuck at "Connection OK"

When I run "sudo python main.py" I get the following output on the screen:
Checking Internet Connection
Connection OK

...and that's it. From other folks, it seems I should be seeing "Ready to Record". Any idea what's happening?

News - Multiple replies play at once

I did a fresh install of Raspbian and the "lennysh-music-patch-1" branch and when I ask Alexa for the news she starts out by saying "Here is your Flash Briefing" and then starts to say multiple versions of the same or different news stories at the same time causing a ton of errors. I had this issue before the fresh install as well with this branch.

Here is just a small snipet, but they repeat constantly until I kill the process and while Alexa is making a lot of noise:

[6f4dd6e8] mpgatofixed32 audio converter error: libmad error: Huffman data overrun
[69853848] mpgatofixed32 audio converter error: libmad error: bad main_data_begin pointer
[6f4ae730] alsa audio output error: cannot open ALSA device "hw:CARD=ALSA,DEV=)" Device or resource busy
[6f4ae730] core audio output error: Audio output failed
[6f4ae730] core audio output error: The audio device "hw:CARD=ALSA,DEV=0" could not be used: Device or resource busy.
[6f4ae730] core audio output error: module not functional

Any ideas what I might be doing wrong?

Your device is currently off line...

When I try to set up Prime Music, Audible and other music from the Alexa app I get the off line message and am unable to set up the music. Other than that my AlexaPi works perfectly. Is this a function of having to push the button to make Alexa active? Can it be fixed? It blocks a significant amount of functionality.

Mic volume to be increased

Noobie here. I have got Alexa running with Amazon's git that was all over the news the other day. I can't wait to have it running again but now with an actual push button.

I am using it with a webcam as a mic and it works fine. The only problem is that I have to speak really close to the cam/mic (less than half a meter), otherwise it won't "hear me". Is there any way to increase the volume/level of the microphone so it can hear me from 2-3 meters, let's say?

Thanks.

alexa app?

this works great, thanks for sharing mate!

is it possible to integrate with the alexa app though? I can't work out how to do it as it seems to require a real echo to go through the setup.

any pointers would be great

thanks again.

playback cutting off

After making a request, Alexa begins playback but abruptly stops and the playback light turns off.

Software Button

Would it be possible to create a software button for opposed to hardwired?
Thanks in advance.

Installation Error

Hello,
I am installing AlexaPi for the first time.
I am getting this error all the time i try installing AlexaPI


Object "=" is unknown, try "ip help".
python: can't open file './auth_web.py': [Errno 2] No such file or directory
Open http://:5000
You can now reboot


please help me. let me know where i am going wrong.

i am installing as super user.

500 error on /code?

I go to serverip:5000 and get redirected to Amazon login. I enter credentials and am then taken to the "click Okay" screen. Amazon then gives me this error:

We're sorry!
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.

I've waited, restarted browser, computer, pi, etc...same error.

I tried going to serverip:5000/code and when I do I get a 500 error:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in call
self.body = self.oldhandler(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(_self.args, *_self.kwargs)
File "./auth_web.py", line 29, in code
code = urllib.quote(cherrypy.request.params['code'])
KeyError: 'code'

Not sure if that is why Amazon can't do it's thing, so I thought I would ask to see if that is normal behavior.

Alexa's Response is Missing Information

Hi,

I set up AlexaPi on my pi B+. Works great, thanks.

I only really have one thing that doesn't work as described: When I ask for information, it tends to give me the shortest answer possible, i.e.

"Alexa, what is anonymous?" "Anonymous: the hacking group."
"Alexa, what's the news?" "News from TuneIn."

Both responses stopped exactly there, and offered no more information. Is this not fixable, or does it have to do with how the response JSON is parsed?

Thanks.

UnboundLocalError: local variable 'audio' referenced before assignment

Hi,

Sometimes after i speak the AlexaPi crash with the following error.

Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 157, in
start()
File "/root/AlexaPi/main.py", line 121, in start
alexa()
File "/root/AlexaPi/main.py", line 95, in alexa
f.write(audio)
UnboundLocalError: local variable 'audio' referenced before assignment

Initiate listening with swiping hand over HC-SR04 ultrasonic sensor

Perhaps an idea for a more streamlined listening initiation would be to swipe hand over a HC-SR04 ultrasonic sensor and it would initiate listening for predefined time. Anyone up for implementing it? :)

Or maybe make it like that when you are in front of it in the "beam" of the ultrasonic sensor it listens to you and when you move away it tells the answer.

Offline - but functioning?

Why would my device (which is working fine for requests such as "what time is it", etc) be reported by
alexa.amazon.com as being Offline? I have also built the Amazon AVS java version, and it reports as "Online"
Also, requests for Tunein are silent whereas on the Java version they play fine.
Alexa.amazon.com's Tunein reports me as being "Currently Offline"

Sonos

I too have several Sonos speakers and would like to use them as my Alexa speaker. I would also like to be able to control the Sonos system from AlexaPi to request music, stations and books. Can you share your code you use to control your Sonos speaker system and/or include it in 1.1 or 2.0 as an option for those who have Sonos?

Missing part of the sound at the beginning of response from Alexa

I am a noobie on Raspbian/Linux or any type programming. I have a Raspberry Pi 2 siting around for nothing for some time in the house. Recently I saw all over the news Amazon's github on how to use a Pi for an Echo using a Java engine and I said to give it a try. After a few hours I finally had it running but I didn't like the GUI starting interface.
This way I've reached Sammachin github on how to do this with a push button using a different engine (Python). I liked the idea more and gave it a try. After many hours and trials I finally had this working also. I ended up installing lennysh's version music-patch-1.

Although Alexa is working I have a few issues bothering me

  1. The beginning part (maybe 3-4 seconds) of the response is missing. The shorter responses do not get at all.
  2. If I am asking for the news it sounds like many different responses are played on top of each other making it impossible to understand anything.
  3. If I ask her to play NPR on Tunein it gives a short answer ending in Tunein, this part being the only one I get.

I am new to github and as far as I comprehend it is not the usual forum-like website where anybody can ask a stupid question and whoever feel like can revert with an answer. Trying to make this work I have posted "issues" asking for answers a few times and some of them have simply been ignored. Somehow I understand. Probably most of these questions are simply dumb for someone experienced who doesn't want to waist his/her time. If I could find answers elsewhere I'd go there, but I couldn't find any on this matter and I really want to make this work. Hoping some of you will understand my noobie position, I am looking forward to some answers. If not I'll just close this issue like those other before it.

Question: is it possible to control devices?

Is it possible to control devices with this AlexaPi? So one could say "Alexa, discover my devices" and it would discover the ones it supports.

Like Wemo, hue, possibly control things with mqtt protocol?

AlexaPi not running and has error

AlexaPi is not running after installation and reboot

/var/log/alexapi.log shows below

Starting Alexa...
Checking Internet Connection
Connection OK
Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 150, in
token = gettoken()
File "/root/AlexaPi/main.py", line 43, in gettoken
refresh = refresh_token
NameError: global name 'refresh_token' is not defined

What am I missing?

Error when finishing setup.py

here is the error:
Object "=" is unknown, try "ip help".
python: can't open file './auth_web.py': [Errno 2] No such file or directory

Also at the begining i get this error: Cleaning up...
ln: failed to create symbolic link ‘S99alexa’: File exists

Alexa does not able to interact with user. Why?

Hello dear, good job. Thanks to the installation video. It works!
I am able to interact with Alexa but she does not interact with me.
When you try to set an alarm clock, Alexa records but then the alarm does not work.
What do you think about?

Kata

Alexa audio input issue; audio error

Hi, when I run main.py I am successfully getting the 'hello' audio output.

But when I press the button(connected b/w GPIO 18 and GND), it throws the following error:

Traceback (most recent call last):
File "main.py", line 156, in
start()
File "main.py", line 130, in start
l, data = inp.read()
alsaaudio.ALSAAudioError: Capture data too large. Try decreasing period size

Any clues on resolving this?

Main.py Doesn't run with Python 3

I guess the code was written for python2. I'm using python 3.

I'm bypassing the start procedure (because the writing of audio fails) and calling alexa method instead. Referencing a local recording.wav file I created using the command line.

I've managed to get most of it working however I'm stuck reading the response from Amazon.

File "main.py", line 103, in alexa
data = r.content.split(boundary)
TypeError: Type str doesn't support the buffer API

Would appreciate a nudge in the right direction.

Thanks!

Reading Kindle Books

This is separate from reading pre-recorded Audible audiobooks.
I ask Alexa to read a kindle book from my library, which doesn't have an Audible option, using branch https://github.com/lennysh/AlexaPi/tree/lennysh-music-patch-1. She says "reading Kindle book _____", then perhaps will open a commercial for Audible (or perhaps not), then nothing.

Debug log yields (this one didn't include a commercial):
Recording... Recording Finished. Sending Speech Request... Processing Request Response... JSON String Returned: {"messageHeader":{},"messageBody":{"directives":[{"namespace":"SpeechSynthesizer","name":"speak","payload":{"contentIdentifier":"amzn1.as-ct.v1.EBottsClientId#ACRI#DeviceTTSRendererV4_b0b1becb-76e8-4e64-8479-c3197d7ee90a","audioContent":"cid:DeviceTTSRendererV4_b0b1becb-76e8-4e64-8479-c3197d7ee90a_1989703376"}},{"namespace":"AudioPlayer","name":"play","payload":{"audioItem":{"streams":[{"streamUrl":"https://tinytts.amazon.com/1/37621e17-7a5d-4a82-b812-717680f6598d-082bed/2/1458944820817/2930c6b9a2c10c8faa375db567ba559e912687590e789b18120b5098d38b33e7/resource.mp3","offsetInMilliseconds":0,"expiryTime":"2016-03-24T22:28:00+0000","progressReport":{"progressReportDelayInMilliseconds":0,"progressReportIntervalInMilliseconds":0},"progressReportRequired":false,"streamId":"amzn1.as-ct.v1.EBottsClientId#ACRI#url#ACRI#f034aa51-14cf-4c53-affb-5d064e6b44e4:5362"}],"audioItemId":"ebotts_audio_resource_group_id"},"navigationToken":"amzn1.as-ct.v1.EBottsClientId#ACRI#url#ACRI#f034aa51-14cf-4c53-affb-5d064e6b44e4:5362","playBehavior":"REPLACE_PREVIOUS"}}]}} navigationToken: amzn1.as-ct.v1.EBottsClientId#ACRI#url#ACRI#f034aa51-14cf-4c53-affb-5d064e6b44e4:5362 streamUrl: https://tinytts.amazon.com/1/37621e17-7a5d-4a82-b812-717680f6598d-082bed/2/1458944820817/2930c6b9a2c10c8faa375db567ba559e912687590e789b18120b5098d38b33e7/resource.mp3 playBehavior: REPLACE_PREVIOUS Play_Audio Request for: response.mp3 [0x1b72798] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [0x1b72798] main interface error: no suitable interface module Player State: State.Opening Player State: State.Playing Player State: State.Ended Play_Audio Request for: https://tinytts.amazon.com/1/37621e17-7a5d-4a82-b812-717680f6598d-082bed/2/1458944820817/2930c6b9a2c10c8faa375db567ba559e912687590e789b18120b5098d38b33e7/resource.mp3 [0x1c2f270] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [0x1c2f270] main interface error: no suitable interface module Player State: State.Opening [0x1c5ff78] gnutls tls client error: TLS handshake error: A TLS fatal alert has been received. [0x1c5ff78] main tls client error: TLS client session handshake error [0x1c60038] access_http access error: cannot establish HTTP/TLS session [0x1c025c8] main input error: open ofhttps://tinytts.amazon.com/1/37621e17-7a5d-4a82-b812-717680f6598d-082bed/2/1458944820817/2930c6b9a2c10c8faa375db567ba559e912687590e789b18120b5098d38b33e7/resource.mp3' failed
[0x1c025c8] main input error: Your input can't be opened
[0x1c025c8] main input error: VLC is unable to open the MRL 'https://tinytts.amazon.com/1/37621e17-7a5d-4a82-b812-717680f6598d-082bed/2/1458944820817/2930c6b9a2c10c8faa375db567ba559e912687590e789b18120b5098d38b33e7/resource.mp3'. Check the log for details.
Player State: State.Error
`

Installation Issues

I ran ./setup.sh and I put in all of the correct information, but it is stuck and says:

[15/Apr/2016:10:49:20] ENGINE Started monitor thread 'Autoreloader'.
[15/Apr/2016:10:49:20] ENGINE Started monitor thread '_TimeoutMonitor'.
[15/Apr/2016:10:49:21] ENGINE Serving on http://0.0.0.0:5000
[15/Apr/2016:10:49:21] ENGINE Bus STARTED

Once it gets to this point, it just stays here. Is there something else I need to do?

500 Error after auth_web

After I run auth_web.py and try to access the socket (serverIP:5000/) I get a 500 error saying "amazon is working to fix this error". Error details "400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal."

However, I have this address on the allowed origins and allowed return URLs (originally just on the origins but put it on the return to troubleshoot).

Has anyone had to deal with this?

Raspberry Pi 3 - Installation error and missing "creds"

Hello,

I have tried to install it on my new Raspberry Pi 3.
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
But it wont work.

At installation i get:
Enter your Security Client Secret:
xxxxx
Object "=" is unknown, try "ip help".
python: can't open file './auth_web.py': [Errno 2] No such file or directory
Open http://:5000
You can now reboot

If i try to start main.py i get:
root@raspberrypi:~/AlexaPi# ./main.py
Traceback (most recent call last):
File "./main.py", line 10, in
from creds import *
ImportError: No module named creds

How can i install "creds" ? What is wrong with the installation?

Thanks for this great project!

Apt-get error after alexa install

I am getting the following when I try to do an apt-get upgrade on my pi after installing the alexa service...

Reading package lists... Done
Building dependency tree
Reading state information... Done Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y
Setting up bluez (5.23-2+rpi1) ... insserv: warning: script 'S99alexa' missing LSB tags and overrides
insserv: warning: script 'alexa' missing LSB tags and overrides insserv: There is a loop at service alexa if started
insserv: There is a loop between service plymouth and mountnfs if started insserv: loop involving service mountnfs at depth 4
insserv: loop involving service networking at depth 3 insserv: There is a loop between service plymouth and udev if started
insserv: loop involving service udev at depth 1 insserv: There is a loop between service plymouth and mountall if started
insserv: loop involving service mountall at depth 4 insserv: loop involving service checkroot-bootclean at depth 3
insserv: There is a loop at service plymouth if started insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Max recursions depth 99 reached insserv: loop involving service memcached at depth 1 insserv: loop involving service kbd at depth 8 insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: loop involving service urandom at depth 6
insserv: loop involving service keyboard-setup at depth 3
insserv: loop involving service mountkernfs at depth 1
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: Starting alexa depends on plymouth and therefore on system facility $all' which can not be true! insserv: Starting alexa depends on plymouth and therefore on system facility$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluetooth:
bluetooth depends on bluez; however:
Package bluez is not configured yet.

dpkg: error processing package bluetooth (--configure):
dependency problems - leaving unconfigured

Any ideas?

100% CPU ?

Is main.py supposed to be running at %100 cpu?

Problem with Amazon Login

Everything seems to load and run without error but when I click Okay of the Amazon screen which provides connectivity to Alexa

When you click "Okay", we'll provide AlexaPi3:
Connectivity to Alexa so that you can interact with it using your voice.

I get the following error and nothing seems to help.

We're sorry!
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.
Go to Amazon.com's Home Page

Run on startup

Hi.

I am having trouble getting Alxa to run on startup of my raspberry pi. the Main.py file is in home/pi/AlexaPi . Everything works fne when i manually run python main.py but on startup alexa service does not run.

any help is appreciated

thanks

ImportError: No module named creds

I am getting the below message when I try to run main.py

root@raspberrypi:# python /root/AlexaPi/main.py
Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 10, in
from creds import *
ImportError: No module named creds
root@raspberrypi:
#

The creds.py file is empty. Where am I going wrong?

Poor Audio Play Back

When I play hello.mp3 using omxplayer all is loud and clear, when running main.py, very low with a hiss over the top....

Any suggestions?

Thanks,
Wayne

python: can't open file './auth_web.py': [Errno 2] No such file or directory

Hello guys,
Looks like a great project. Only I get stuck during installation. I use RASPBIAN JESSIE 4.1. The error that I get is python: can't open file './auth_web.py': [Errno 2] No such file or directory. After that he shows the IP from the pi and echo's that I can reboot the pi. Does somebody know how I can fix this?
Kind regards,
Tim

error: Cannot open /root/AlexaPi/1sec.mp3: File access error. (code 22)

First of all, thank you very much for providing such an interesting example!

I run main.py without errors and heard Alexa's voice (i.e. hello) successfully.

$ sudo python main.py
Checking Internet Connection
Connection OK

After pressing a button connected to my Pi, I could interact with Alexa. However I got an error as follows:

[mpg123.c:634] error: Cannot open /root/AlexaPi/1sec.mp3: File access error. (code 22)

Responding back without a button push

Hi there,
This is an awesome project. I like it better than the one using the java client. Is there a way to not have to press the button when Alexa needs a response? For instance, if I ask her to set a calender event, she will ask me when, where, etc until she is done and I say yes. Every time I need to respond, I have to press the button. Where are you handling responses back from the AVS? This would be a nice addition to an already great project.
-Rob

Red led and Green led connections

I'm a noobie.

I don't have a dual led. I am using separate red and green LEDs from an old PC case. They were used as HDD and POWER indicators. They should be fine, I guess.

On the instructions it says: "... you could also use separate LEDS, Red is connected to GPIO 24 and green to GPIO 25."

Does that mean RED is GPIO 24 + GROUND, right? The same question goes for GREEN too.

Dumb question?!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.