Alexa on Raspberry pi

Amazon has done a good job for hobbyist by opening their Alexa API. They have even given the boilerplate code base to start.

You an create almost same experience as Amazon echo with Raspberry-pi.

After first sexting up raspberry pi by raspbian and then installing Debian. You need to configure raspberry. One mistake I did was installing raspbian and then installing debian from that while I should have directly written debian on my sd card. Installing debian via rasbian path is so much time consuming.

Anyway configuring raspberry-pi is very simple

after first debian boot do

sudo apt-get update

sudo apt-get upgrade

then

sudo rasps-config

Now enable ssh (in In advanced optionsI don’t know why they have disabled this to begin with (security reason I know but why?)

You can overclock your raspberry pi for better performance.
Alexa RPi

Follow the steps from:

https://github.com/alexa/alexa-avs-sample-app

Very simple to setup just need time.

At last open three tabs in command window T1, T2, T3

T1

cd ~/Desktop/alexa-avs-sample-app/samples
cd companionService && npm start

T2

cd ~/Desktop/alexa-avs-sample-app/samples
cd javaclient && mvn exec:exec
authorization
T3
To use the Sensory wake word engine, type –

cd ~/Desktop/alexa-avs-sample-app/samples
cd wakeWordAgent/src && ./wakeWordAgent -e kitt_ai

My experience with RPi-Alexa was not so great because I used old RPi which was not supported/mentioned in the blog. And frankly speaking this was damm slow not very usable. Overclock help a little bit. It was a good experience/fun and good toy 🙂 that is all I can say for echo. I don’t think it is really usable to be more than a toy right now. You can enjoy it for a month or two max.

Alexa has (great I am not so sure of) many addons which you can add to your raspberry pi via web interface. This can make it more interesting for may be more than a month. You can say like “Whats my briefing” You an play guessing games. Adding items to shopping list and emailing them setting reminder for gym, grocery shopping etc.

Some Commands in not any particular order:

  • Tell me a joke
  • Add X to my shopping list
  • Add 34 + 67
  • Who is X?
  • How tall is X?
  • Whats on my shopping list?
  • Create a new to-do.?
  • What time is it?
  • What time is it in Bengaluru?
  • What is the weather like in Bengaluru?
  • Set a timer for X seconds/minutes
  • What’s on my to-do list?
  • How old is X (Obama)
  • How many grams in an ounce?
  • News highlights
  • knock knock
  • Do you have any new features?
  • How do you say tomato in hindi /french
  • Define X
  • How many calories in a tomato ?
  • How do you spell entrepreneur ?
  • Flip a coin
  • Roll a dice
  • Rock paper scissor
  • When is holi?
  • Wikipedia X
  • One fish two fish
  • Do you like green eggs and  ham ?
  • Where are you from ?
  • I want the truth
  • Surely you can’t be serious.
  • I need to buy deodorant.
  • Good afternoon
  • What’s the meaning of life
  • Sing happy birthday
  • What day of the week christmas fall
  • Can you rap?
  • What’s my flash briefing?
  • Whats in the news ?
  • Alexa inspire me
  • How to make bloody marry ?
  • Start workout
  • Start Akinator
  • play jeopardy

For some you may need to enable addons like for news, for workout you need 7 -minutes workout.

Add Alexa in front of all command which makes it really annoying citing her name each time. They should have made it more smart and keep it triggered for at least 5 extra minutes. Could have add this to user agreement. I know people are worried about security, privacy. Amazon/Google listening our conversation always. But I guess main problem for amazon would have been understanding a whole para to make sense out of questions directed to Echo  when listening for five full minutes.

Some recording:

Reply for Alexa, When is holy?

Reply for Alexa, One fish two fish 

Some more:

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s