Latest Android news, applications and forum discussion

Sep

15

2010

How does Google’s Voice Action work? Let’s look at the code

by Chris Moor
tagged , , , ,

Google’s Voice Actions in their voice search on Android are pretty slick. Being able to play a song with a phrase is definitely a time-saver for most people. But how exactly does the code work?

I’m no code-monkey, but Tim Bray explains how they used a new Intent to accomplish it. Here’s a brief explanation of it:

If you develop a music app that supports open-ended music search, you can make it work with users speaking “listen to” Voice Actions simply by registering for the new intent we’ve defined. This new intent isn’t defined as a constant in the SDK yet, but we wanted to make sure music app developers had all the information needed to use it right away.

For a glimpse at the code hit up the link below and check it out.

[via android dev blog]

» See more articles by Chris Moor

Categorized as Android Development

Comments

  • http://NewSeattleGames.com Randy Lutcavich

    Probably not the best place to post this but I hope the right person reads it… and agrees.

    The intent for the Music Voice Action is awesome but I risk sounding greedy by saying: We also need an intent for the Note-to-Self Voice Action!

    Having the Note-to-Self linked to Gmail is very limiting. I for one use the Easy Note app to take notes because I like that they have a widget for the Home Screen but I really need a Voice Action if I am going to take full advantage of it.

    Is there anyway we can get an Intent for the Note-to-Self Voice Action to the developers of Easy Note and any other note app developers out there?