Installing Alexa Voice Service to Raspberry Pi
Вставка
- Опубліковано 13 січ 2016
- This is a quick tutorial on install Alexa Voice Service to your Raspberry Pi creating your very own Amazon ECHO!! Thanks for the view!
**You can also download the Amazon Alexa App for your phone to configure / interface with your raspberry echo!. it will be listed as a new device!!
raspbian jessie:
goo.gl/NkXg0j
github:
goo.gl/altsmD
SamMachin:
goo.gl/ixH4u8
::Products::
Raspberry Pi 2:
goo.gl/nWboZ3
USB Sound card:
goo.gl/CkKofs
---- Other Videos:
Windows 10 Privacy
goo.gl/YmV8WT
Dual Monitor with Raspberry Pi
goo.gl/NmSxRf
Adding Second Hard Drive to Laptop
goo.gl/Mzqxeh
Raspberry Pi 2 Plex Media Server Install
goo.gl/rpKDdx
#3dPrintingOnUA-cam Q&A
goo.gl/8wkq2x
DIY Home Virtualization Server with Proxmox
goo.gl/T0y0k0
Unofficial Windows 10 To Go Installation
goo.gl/zIv0Xj
Raspberry Pi 2 Desktop Part 2
goo.gl/hHS724
Tweet me: @ / novaspirittech
facebook: @ / novaspirittech
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support! - Наука та технологія
This is amazing! I was thinking about getting one of the new dots but since I have a Pi sitting around collecting dust, I now know what I will be doing today.
My first Raspberry Pi project! I have the amazon Echo but just had to build this one!! Finally got it working!! Thank you!
Dude this is awesome! I had just stumbled apon this as a suggested video. What a great tutorial! I can now add this to my boom boxes. I just got my first RPi this week. Subbed with a thumbs up.
Thank you for this. It took me three tries, but now it works great. My biggest problem was speakers & mic. I get a kick out of those math geniuses who says it is cheaper to just buy an Echo Dot. Well, duh. They completely missed the point of building one from a Raspberry Pi. Now I get to build one with my C.H.I.P. -- Thank you again.
Very nice. I've had an echo since Christmas and it's really cool. I didn't know you could interface the whole service through the development platform. I was going to sign up anyway to create some "skills" for Alexa. While I'm at it, I might load a spare pi with this!
Thanks so much for this video! Finally got it up and running on my Raspberry Pi Rev 2 model B after figuring which pins to use as there is no GPIO 3. Used GPIO 18 and the ground right beside it on same row. works like a charm!!! Thanks again.
I'm subscribed and Thumbs-Up. Excellent video!
You go at a pace that's easy to follow. Also you speak clearly, (which is NOT the case of so many UA-camrs
DON'T do).
---
I have ever model of Pi's and have the actual "Amazon echo", (thanks to my wife.)
Look forward to your next video. I also have a boat-load of Arduino's, and ESP8266.
Fantastic video! I'll definitely set one of these up. I probably will go with the music also since I am a Prime user.
Thanks for sharing!
Any idea if this can listen to bluetooth events. The new Raspberry Pi 3 has Bluetooth built in. So you would ideally just need to pair a Bluetooth device which also has a mic and use this as the button press event.
Wow!! inspiring!
I love your videos. learn so much from you!
Thank you ! Keep them coming please!
Hey great video,
If you guys are moving forward with getting it setup through the video and you want it to boot up automatically there is still one more fix your going to need todo.
This is assuming your using the path /home/pi/Downloads/AlexaPi as he did in the folder
Just update the file found here : /etc/init.d/alexa
on the file update the 8th line:
python /root/AlexaPi/main.py &
to
python /home/pi/Downloads/AlexaPi/main.py &
(or whatever directory you used to install)
and that should solve your startup problems!
Wow your the man! your Tutorial actually much better then RasberryPiGuy from England! I Love it! Thank you.
Thanks for the tutorial!!! GJ ! Works like charm on Raspberi Pi 1 B+ with the new Raspbian Jessie - Release date:2016-05-27//.
and 2 tips for all who are about to start this - don't mess up the number of the pins with their gpio numbers ;) Also don't forget the resistors !
Cool job ! I'm a total noob in this but I got the idea and you explained the process very well =)
Good stuff. Thanks for sharing!!
Great work, well done. Thanks!
Thanks!!!!
It works with raspberry pi3 (with button)!!!
Excellent video!!!!
Even doe I dont own a PI, I watch your videos cause I find it really interesting! Good job mate :)
+Robber7 Thanks! i really enjoy making them!!
+Robber7 You should really get one! They are so cheap! The new one the pi 3 is on sale for $25 and is 10x more powerful than the pi 1. you can do so many things with it!
@@NovaspiritTech Hi sir...!
The video is really awesome..... but now in 2020 when I try to make this..... it has cherrypy error and all that stuff.......
On Pi zero w
Any help will save me....
Thanks in advance.....
Nice video!
What would it take to be able to have it be voice activated (like Jasper)?
Hi, thanks for the video it's very helpful!
could you show more details about the look of your RaspberryPi with the speaker, microphone and the button you have to push?
thanks 😉
Great video!
How do you setup the pins to get the button in order to receive input ?
Great video. I followed your step by step and it works fine. thanks alot. keep up the good work. By the way can you make a video to work with Mycroft with raspberry pi 3 ?
awesome. more videos like these please!
Very cool. I will try. Can you tell me how do you activate the microphone? Is there any button?
Hey Don great job I was able to install Alexa on my RPi 3 with wake word everything works great I was just wondering if I can have Alexa run a script ( like a script to check the reading from a DHT 22 sensor). Thanks
Great video Don, I have one question. I am using putty to SSH and for the audio that I am going to hear from alexa, do I need headphones or will the sound go through the Tv
Great video, I hadn't spotted the bug in the setup regarding entering your refresh_token in creds.py but I've now fixed that in my repo.
+Sam Machin Thanks!!! Thank you for your genius code!!! Your $10 Chip was very inspiring which caused me to do this tutorial!!
Hi +Sam Machin , I was using alexa web demo on github can you tell me how can i operate it or any documentation .
I am having following error on browser console
POST alexaweb.herokuapp.com/audio 500 (Internal Server Error)
+techbhalla videosgeek There was a fault with my heroku install, all fixed now
Ok Thanks for the update I am using it in my website .
+NTS “NTSTechWorld” Tech World I followed the video precisely and everything worked perfectly, no syntax error on line 6 either
Great video. I think I will use it.
Could you use Jasper to activate?
If i interface two hue Philips wireless bulb with this Alexa that you made and using Philips hub application it will work or not em talking controlling and automating that bulb?
Is it possible to connect the Microphone to the 3.5mm Jack and use usb speakers? (That is giving input through the 3.5mm jack and recieving output from The usb port ) can it be done ?
Great video. Thanks .
Good Video.. I am going to try it now
Works great. The only problem I'm having is that it doesn't play iheart radio music or give news briefings - basically, anything from the Music and Book section. I previously had the official installation of Echo (the walkthrough amazon provides) on this same pi and the music worked fine. Any suggestions?
Hi, would you consider in the future doing a tutorial also on Jasper please ?Thank you!
P.S: I installed Alexa on my raspberry using your tutorial and it works like a charm!
You have great presentation and mentoring skills.
Good Job! Thanks
I am currently working on adapting this. Just wondering is it possible to delete an Alexa device on the Amazon Console? I have several trial ones I created and consequently am not using anymore! Can't find a way to delete?
Hey, do we know if there is a way to run this in parallel with a monitor such that we can ask it to pull up a youtube video and it pulls it up? Such as "Hey Alexa, pull up a youtube video on how to cut a tomato" and it pulls it up on the monitor. Is this doable? Any advice would be great!
Is there a way to use the spacebar vs a mic button? Thank you!
Can you use the Spotify with the Raspberry Pi ?
Thanks for the video. I have a question. Is there any specific setup to discover devices in a home network. Whenever I try "Discover Devices", it comes with there are no devices found message. Any ideas ???
Can we use a Bluetooth speaker with mic for both input and output for this?
great topic, keep up.
Can you change the language Alexa is using?
VERY HELPFUL
Thanks +Novaspirit Tech, I followed your great video and have AlexaPi working on my Pi. Amazon have just released a new feature - Alexa "Display Cards". Please could you do a follow-up on how to use these "Display Cards" with a simple demo?
Hi there, you say you are using pins 18 and 3 for ground or is that you are using 18 & 3 and a ground? as 3 is not ground? thanks
Great Job
I finally have a reason to get a Pi. Thanks for the video and inspiration. !!!SuBsCrIbEd!!!
ok got it to work successfully on my raspberry pi 2 and raspberry pi 3 haven't tried zero yet question? I'm new at all this. I set up ssh for both pi's and assigned an IP to each. What I can't do is access Alexa from my mac via ssh. Don't have a problem with direct connection to either pi. If anyone can help I'd appreciate it. Thanks. And thanks for this great, very easy video to follow.
Nice! Looks like this weekends project!
+Aaron Bond seeing that you are a car enthusiast! check out my weekend project LOL --- OBD2 + Arduino + lcd screen instagram.com/p/BCgxxUgtUC0/?taken-by=donnovations
Novaspirit Tech Nice... hope you post more on that one also!
Don thanks for a great write-up! I got everything working but couldn't get her to take a command! Turns out that "GPIO Pin 18" is just that - and somehow I was putting it on the physical pin 18, not the GPIO pin 18 - huge difference. GPIO pin 18 is actually located on physical pin #12 on the Raspberry Pi 2 Model B. Oooops! Once that was straightened out she worked fine! Now she's working, but she seems to cut things off mid response. ??? Again, thanks for sharing this!
Hello, As I can import the pulseaudio library in my raspberry pi3, I present problems to be able to take the library? Thanks!!
I LOVE U SO MUCH.... U MADE MY LIFE EASIER
Thanks for the video. Worked well without the code fix. Does anyone knows how long it takes to get Amazon Music enabled? Currently pending on the Amazon developer's page... Regarding the buttons, on the Raspberry Pi B+ it is pin #12 (GPIO18) and physical pin #9 for GND. For audio input I used a web cam, no issues.
Other Great Video, it is possible implement this in a raspberry pi zero?
Instead of using a button, can you just jump pin's 18 and 3 with a wire? I'm not sure if the button has a voltage regulator in it and I don't want to burn out the pins, but this could get rid of the button requirement.
bydefault alexa taking 16000Hz,S16_LE format but my mic is recording in 8000Hz,U8 format so how to equal it???or how to change mic bitrate and format?
can you connect such build to Alexa's phone app and controll Philips hue? did u test it yet?
Is there a way I can make the program run with out me doing python main.py?
Thank you I might put this into my robot I will make the robot detect a face and when it does it will start the Alexa voice service.
i running in this problem
Traceback (most recent call last):
File "main.py", line 145, in
GPIO.setup(lights, GPIO.OUT)
TypeError: an integer is required
any ideas
could i plug an infrared sensor into the pi and use an infrared remote as the button?
I don't have jumper cables to connect to gpio, but I have a breadboard and I've seen people use that for the button. How would I go about doing that?
nice vid!
I have bought Raspberry Pi 4 on it I have installed the Rasbian buster but analog hdmi Bluetooth audio out not working please suggest me.
Is there any hardware issue with my Raspberry Pi4
how to setup a button?
Sir I will tell u problem. I am running the three stepper motor with arduino by taking commands from rpi through the voice. Ist possible to run with the help Amazon exho
Hello novaspirit tech i have a question about the Alexa pi i think i screwed up the first time and the second time it wont sent a new response code on a website wat to do?
Can someone post a link for a closeup photo of where the button and leds connect to a Rapsberry Pi2 Model GB GPIO connector please? Got it installed but cannot get it working. Thanks.
Hey, I did tried your project on the Pi B+ (Ist Generation). It works. So awesome job. but the problem is it is killing the CPU. main.py script takes almost the whole CPU percentage. can you fix it ?
Can you tell us how to remove the Alexa service? When I attempt to install some packages like iceweasel, there are errors from the Alexa service. Something about depends on Plymouth and makes my package installs fail. I need to remove the Alexa service so I can install other apps. I've tried removing Alexa from etc/init.d etc etc, but to no success.
how do i get it to listen for wake word upon startup so i dont have to load 3 windows everytime?
Hi, great guide! Quick question, I got to the point where you need to get the key from amazon running the sudo ./setup.sh but when I input all my keys and credentials required, it takes me to a page where it says An error occurred when we tried to process your request. Rest assured... etc
Any ideas why?
+Mario Alberto Miramontes López Nevermind, I was copying and extra space. Now it all works and I get a connection, but I cannot hear the "Hello" message when I run the Main.py
Any idea why?
Great instruction! I have a problem connecting my Raspberry Pi's IP, are there any ways to fix it? And I cannot open creds.py either, how can I solve it? Thank you!
I have a fundamental question. How do you get the command line interface to rasberry pi? Need some guidance for setting it up.
Thanks, it's still working for me at this moment as copying this description. ;)
should i plug the mic to raspberry pi?????
Hey, I managed to setup Alexa on my Raspberry Pi by following all the instructions that you have provided in this video without any errors. After manually executing the main.py script in the terminal, I tried to connect GPIO pin 18(#12) & GPIO pin 3(#5) and spoke my command into the USB microphone. Unfortunately there was no output audio. I know my Audio Jack of my RasPi is working properly since I played a couple of UA-cam videos just to test whether the audio was working fine.
+Jonathan Pereira force audio through headphone jack
+Nico Schurr Like I said I am receiving audio from my monitors output (through HDMI). I tested this out by playing a UA-cam video. hence it is not a audio jack problem
great video. im using raspberry pi 3 and with momentary push button connected on a breadboard.
i am getting this error
Traceback (most recent call last):
File "main.py", line 156, in
start()
File "main.py", line 135, in start
l, data = inp.read()
UnboundLocalError: local variable 'inp' referenced before assignment
Please help.
Thanks
I need help with something. when i do the "sudo ./setup.sh" after a while, there is a huge block of red text thats says "Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-85zrtd77/wsgiref/" What do I do??
I salvaged a push to talk mic with a button from a Motorola headset. It has 4 wires, any idea if I can use that to kill 2 birds to use the mic an button with this project:? Thanks for the video!
Donald - A natural on camera.
Can I run Python Scripts beside the echo program?
isn't there anyway to do this without a button? I mean so you can be anywhere in the house as long as your voice can reach the mic so you won't have to go near to press the button. Isn't there a way to have it always listening?
how do you add this button to work? should i just connect it or there is something more i should do?
+mzelich connect through ground and gpio 18, use a 470 ohm resistor
I too have the same issue when I get to the end off the install that "./auth_web.py" could not be opened because the file or directory does not exist," even though it is in the /home/AlexaPi/Downloads folder. I also noticed the amazon credentials are not getting written to the cred.py file. I manually updated the creds file with the correct info but still no joy. I am Trying this on the Pi 3
+Mark Davis The main repository has code removed from the setup.sh. You need to use the repository github.com/novaspirit/AlexaPi.git but I still cannot get it to work beyond Alexa saying "hello" once. After that nothing and my button doesn't do anything. I have installed it several times with the same negative result.
Product ID is on the previous page. I can be different than the top left of that page
I got mines to work. FYI You have to have your Pins for the button in GPIO18 (wired pin 12) and GPIO3 GRD (wired pin 6).
I can't understand the last part. "sudo nano creds.py". how did you change refres_token?
can we install the same Alexa voice service into Intel Galileo Gen 2 board..? or is there any other version. thank you. :)
before I brick my Pi , Please advise: GPIO pin 3 is not Ground, from my GPIO chart GPIO pin 3 is SLC , I2c. Is that correct ?
I'm getting my students to do this in class but will not work. everything installs fine with the steps provided. we have a button on 18 and ground. we have tested the speaker and the mic using test.wav. we get no errors on install. the creds file is fine too. the log just says stopped Alexa service. is it because we are in Canada?
Hi Nova ! i'm use a pi zero to make one and follow your video, and the youtube says this video had been removed from your watch list !! help me please, and how to solve the creds problem.
is it not possible for using a Bluetooth speaker having built-in mic and a button!?
Everything comes out same as yours upto 8:36 but then it is showing invalid syntax.Did you install java extension for alexa to work
What kind of wire do I need to connect my button to the GND and GPIO 18?
a breadboard with a button attached with solderless Male to female jumper wires to your PI's pins
So I'm using a regular push button switch with only two wires, and I'm having trouble getting it working. Could anyone tell me which GPIO pins I should connect to in order to get Alexa to hear me, or which steps I would have to take?
Is there anyway to simulate GPIO? I do not have a button and what to try it
Thanks for the video. The raspi echo is quite cool. But it's "only" in english. Is is possible to localize it to german?
Markus Homberger yes now
Help me,
How to create a simple module for control light?
Does the button has to be connected to GPIO3 or ground?
+Peter Pan gpio 3 is ground. connect it to 3 and 18