Forget Siri – make Wolfram Alpha your personal assistant

So you can spend a bundle on a new phone and it comes with a voice-activated digital assistant. But let’s be honest, it’s much more satisfying if you coded up this feature yourself. Here’s a guide on doing just that by combining an Asterisk server with the Wolfram Alpha API.

Asterisk is a package we are already familiar with. It’s an open source Private Branch Exchange suite that lets you build your own telephone network. Chances are, you’re not going to build one just for this project, but if you do make sure to document the process and let us know about it. With the Asterisk server in place you just need to give the assistant script an extension (in this case it’s 4747).

But then there’s the problem of translating your speech into text which can be submitted as a Wolfram query. There’s an API for that too which uses Google to do that translation. From there you can tweak abbreviations and other parameters, but all-in-all your new assistant is ready to go. Call it up and ask what to do when you have a flat tire (yeah, that commercial drives us crazy too).

[Thanks M]

Comments

  1. Th3badwolf says:

    Read the whole thing and my code-fu isn’t up to the game…sadly enough.

    How about so code-sensei out here to take that and implement it as an app? market it at 5$ and I’ll buy it,anyone else?

    Wolframalpha is a great ressource and it can even decode a genetic sequence on the fly,how awesome is that =P

  2. tmbinc says:

    Now replace speech recognition with OCR and make the Bus Pants Utilization real – we’re not far away anymore!

  3. Nerd Uno says:

    Not much expertise is necessary to get this working. PBX in a Flash is a turnkey install from an ISO. It takes about an hour on virtually any PC or virtual machine. The one-click Wolfram Alpha installer adds an interface to Wolfram Alpha by dialing 4747 from any phone connected to the PBX. The install takes under a minute.

    • Nerd Uno says:

      P.S.For those new to PBX in a Flash, we should probably mention that you also get unlimited, free calling in the U.S. and Canada with Google Voice as part of the PBX in a Flash install. It’s all free!

      • blue carbuncle says:

        Hey chief, thanks for the heads up :) I’m gonna give it a shot this evening. You should write it up and submit it. It would save some folks a lot of time and headaches if it works like it looks :) Thanks again Nerd Uno.

  4. wifigod says:

    I wonder how hard it would be to set this up in Twilio. I’ll have to take a look at the code and see! :-)

  5. Hate to be the kill joy in this roundabout hacking…but there’s already a [number of] Wolfram alpha Apps with Googles speech-to-text… Or am I missing something?

    • xiuix says:

      Agreed Google Voice Serach that is built-in to android works with the official wolfram alpha app. are they talking about using astrik on a PC to use the website. If that is so why even bother talking about a ifone app. also how the heck is wolfram going to tie into my calendar or txt messages. this whole post smells of ifone h8.

  6. techb says:

    I seen wolframalpha on TED when I was heavy into the AI scene. More than a great tool. It’s my secondhand search engine.

    As to the article, this is a great implementation with wolframallpha. It gives me more ideas….

  7. War_Spigot says:

    Wolfram Alpha is the best, I use it for math/science homework. There’s already apps for it on android and iphone. It even has a sense of humor
    Why? , or

    Why?

    Am I going to die?>

    And as Th3badwolf mentioned, it can do DNA

  8. Aatch says:

    I think you could probably cut the asterix server out of the way and make a smartphone app that does those steps and uses speech synthesis to say the result.

  9. Lee Gibson says:

    You know that Siri will return data from Wolfram Alpha out-of-the-box, right?

    Go ahead and ask your 4S for the wingspan of a 747. See what happens.

  10. Luca says:

    Siri is based on wolframalpha http://en.wikipedia.org/wiki/Siri_(software)

  11. Taylor says:

    Notify me.

  12. TheDoC says:

    I actually set this up. There are two methods to accomplish this. I found that the version that Lefteris came up with using a custom agi seems to work better. I was having issues where the system call in the dialplan would get held up and not complete. If you look in the PBXiaF forum there is more information on the topic. look for speech recognition and wolfram.

  13. Dixie Flatline says:

    I too went out of my way to set this up using an old box we had kicking about, and I think this is a great hack, irregardless of if there is already a apple or droid interface that does similar, honestly who cares, technically its a great hack, and a nice example of something else interesting to do with a home PBX system.

    if you have the bits knocking about, the installation of the PBXiaF deal, & the centos server it lives in, was trivial, the PBXiaF itself, seems to be a pretty solid pbx system, and ‘out the box’ so to speak, understood my accent.

    Thanks! I had a great time doing this. x

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

Follow

Get every new post delivered to your Inbox.

Join 94,463 other followers