3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Read Email with Arduino and Wave Shield

Read Email with Arduino and Wave Shield
As part of my project here http://www.instructables.com/id/Sound-Switcher/  (that project is in a contest so if you like this then vote for that!) that uses an Arduino to interrupt an extrernal sound source (i.e. iPod) to let you know about things going on around you, I had it also interrupt on emails and read you who the who the email is from and the subject line (so you know if you want to stop what you're doing and check it).  Since have an Arduino with a Wave Shield read your email might be useful to others, I spun it off into it's own instructable here.  This uses serial to transfer the data.  I'm just using the USB interace on the Arduino, but you should be able to accomplish the same thing wirelessly with XBees from what I understand.

So basically the stuff in this instructable will
1. Check your email
2. If something's new it will convert it to a wav file
3. then it will send it to the arduino via serial
4. then the Arduino will play it

The biggest TODO is speeding up the file transfer.  My idea is to have the computer send over 100 bytes or so, then wait for an acknowledgement response from the Arduino before it sends more.  It would also be nice to have some error checking as well since a partial binary file isn't much better than none at all in some case.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Command Line Text to Speech Utility

Here's a little utility I wrote really quick to covert text to speech.  It's written in C# with the free Visual C# 2008 Express Edition .  You'll probably need .Net 3.5 to run this.  The code is included, but if you just want the exe you can get it in CommandLineText2Speech/CommandLineText2Speech/bin/Release in the zip file.  To get the tool working you can just open up a command prompt, navigate to the directory where you put the exe, and type CommandLineText2Speech.exe.  It will output this:

Usage:
To list installed voices:
CommandLineText2Speech.exe whatvoices

To convert text to a wav:
CommandLineText2Speech.exe [voice] [rate - default 0 (-10 to 10)] [volume - default 80 (0 to 100)] "[text to convert]" [output file]


In other words you'll probably want to first run:
CommandLineText2Speech.exe whatvoices

This will list out what voices you have installed on your computer.  You'll need the name of a voice to run the tool.  The voices that come with Windows aren't great, AT&T has some that are pretty good.  Next to convert text to a wav file do this

CommandLineText2Speech.exe "Microsoft Sam" 0 80 "This is a test" test.wav

Here's what it all means:
"Microsoft Sam" - the voice, this is one that comes with Windows, you have to put it in quotes since there's a space
0 - Normal Speed (can go from -10 to 10)
80 - Normal Volume (can go from 0 to 100)
"This is a test" - The text that will be turned into a wav file
test.wav - what the wav file will be called

« Previous StepDownload PDFView All StepsNext Step »
3 comments
Dec 1, 2010. 9:03 PMRaziel7 says:
Cool ible. So were you guys able to make the robot head read e-mails?
Mar 20, 2010. 8:04 AMno0x says:
Cool but very useless lol
You can just let the computer do all the work with its own speaker

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
4
Followers
7
Author:davewking