Alexa Compliment My Wife 18 March 2017

Alexa, tell my wife she’s pretty

image

Erin holding baby Theo

I have a hobby of playing around with new technology while ignoring the super bowl on TV. This year I decided to learn some of the Alexa API. I had received an Echo for Christmas and thought it would be fun to build a really simple app. I decided to make a little app to help me compliment my wife. We try to compliment each other daily, something we learned in our marriage class ;)

Alexa Skill: “My Wife”

I had the basic functions working by the end of the Super Bowl. After tweaking it a bit more and adding a name variable I decided it was good enough to publish. It is a silly skill, but it was something fun to learn and do in a couple of hours. It has also inspired me to start working on some other Alexa skills. Without further ado, feel free to install the MyWife Alexa skill

User: “Alexa, tell my wife she is pretty.”
Alexa: “Hey Wife, Wow, that confidence looks sexy on you.”
User: “Alexa, tell my wife set name to Erin”
Alexa: “Wife’s name is now set to Erin”
User: “Alexa, tell my wife Erin she is sexy”
Alexa: “Dang Girl is your name Wifi ? Because I’m feeling a connection!”
User: “Alexa, tell my wife I love her”
Alexa: “I want to grow old with you.”

I plan to add some more fun features eventually, but this was amusing enough for me to start with.

Alexa Links

I have been having fun with our Echo’s, you can see how I have been using Alexa for newborns to help us adjust to our baby. I plan to try to do even more with Alexa in the future.

If you want to get started with Alexa programming. Amazon made it super simple, start with the Node.js Alexa SDK Lambda skill, and work from there. See the simple example tutorials, I liked above with my code. I think there are some really cool possibilities opened up by nearly always on voice UI.

Code

This is the full source code, feel free to use it to learn some Alexa basics. It basically extends some concepts from the sample space facts and high low game examples.

comments
I am Dan Mayer and this is my development blog. Currently it focuses mostly on Ruby development, a side of dev process, and best practices. It also has archives of my old development posts dating back to when I was first learning programming. I contribute to a few OSS projects and often work on my own projects, You can find my code on github.

@DanMayer on Twitter

(emailed once a week, if new posts)

licensed under a Creative Commons License.

Creative Commons License