Pages: [1]   Go Down
Author Topic: Electric Imp speaks and listens to reply on phone  (Read 982 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The electric Imp is the size of an SD card.  It will call me on the phone and wait for a verbal response.  When I speak to it the number or text is transcribed then sent back to the tiny module for processing.  I've got this working on Electric Imp today.  Only 30 lines of code.  10 minutes of my time!

http://electricimp.com/product/

How hard do you think it would be to do on an Arduino with Wifly?
Is it possible?  How do you configure the router to receive incoming HTTP requests?

function sendTwilio(){
local response =
http.post("https://api.twilio.com/2010-04-01/Accounts/ACae249c17f97/Calls.json",
{"Authorization":"Basic QUNhZTI0OWM4OWYwZjA4NDg2OTBjOTRhN"},
"From=%2B18055551212&To=%2B18055551313&ApplicationSid=AP5714e4d49").sendsync();
if(response.statuscode==201) server.log("Calling soon");
else {
server.log(response.statuscode);
server.log(response.body);
} }
device.on("sendit",function(s) {
sendTwilio();
} );
function mywebserver(request,res){
t<-http.urldecode(request.body);
device.send("sendbody",t.TranscriptionText);  //speak.xml
res.send(200,"okay");
}
http.onrequest(mywebserver);
server.log("Start Agent");

imp.configure("Call1", [], []);
agent.on("sendbody",function(value){
server.log(value);
});
agent.send("sendit","notused");

Twiml script:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="fr">
Please leave a message BEFORE the tone.</Say>
<Record maxLength="20" action="x"
transcribeCallback="https://agent.electricimp.com/3b4Laaaa" />
</Response>
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

More about Hardware:
http://electricimp.com/developers/hardware.php

Only $20 now!  0.85 for Host board.
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have had any luck with the Wifly and Twilio ?

I have a project that I would like to send an sms directly from the Arduino to my cell phone.

Thanks,

Tom
Logged

Pages: [1]   Go Up
Jump to: