Creating a Siri clone with an Arduino Yún


An Arduino Yún can act just like Siri, allowing users to ask it a question and get an audio response.


Over the years, voice control applications have risen in popularity with programs like Siri, Alexa, Cortana, and “OK Google” revolutionizing the way in which people interact with their mobile devices. With this in mind, Maker Bob Hammell decided to recreate the capabilities of Apple’s intelligent personal assistant using an Arduino.

Eli

An Arduino Yún (ATmega32U4) was chosen to mimic Siri, enabling users to ask it a question and to receive an audio response moments later. A Proto Shield with a pushbutton sits on top of the Internet-connected Arduino, while an audio interface plugged into the Yún’s USB socket is attached to a microphone and a battery-powered speaker.

Whenever the circuit’s pushbutton is pressed, the Arduino sketch running on the ATmega32U4 launches a Python script on the Atheros AR9331, which emits a tone promoting a user’s question. The inquiry is recorded through the microphone and saved as a WAV file. From there, the file is translated to text using AT&T’s Speech to Text API. This then gets passed into the WolframAlpha computational knowledge engine using the Temboo library, and upon receiving a response, calls another Linux command to share the answer through the speaker.

Interested? You can find out more about the project, including its source code and sketches, on the Maker’s detailed page here. Or, simply watch it in action below.

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