Pages: [1]   Go Down
Author Topic: Speech recognition  (Read 1956 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i wanted to use arduino for speech recognition. Is it possible for arduino to detect words such as lights ... or on .... and what circuit should i use. I do not want to use ready made shields for speech recognition.
Logged

Maine
Offline Offline
Sr. Member
****
Karma: 14
Posts: 417
Caution: Explosives in use.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I do not want to use ready made shields for speech recognition.

Why?
Logged

"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

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

I've done this with Electric Imp.  Only a few lines of code.

http://forums.electricimp.com/discussion/937/speak-to-your-imp-over-the-phone#Item_10
Logged

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

Skype Brighteyes3333
(262) 696-9619

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

cause i'm doing it as my college project
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12579
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

cause i'm doing it as my college project

Then presumably you know what needs to be done to recognise speech and have some idea how to go about implementing it in hardware and software?

If your answer is "No, I don't know where to start" then you've chosen the wrong project.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

UK
Offline Offline
Tesla Member
***
Karma: 104
Posts: 6380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have a link to the project that doesn't require a login?

...R

I've done this with Electric Imp.  Only a few lines of code.

http://forums.electricimp.com/discussion/937/speak-to-your-imp-over-the-phone#Item_10

Logged

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

i am designing my pre amplifier ....  but can i directly use the mic's ouput in arduino using aref(INTERNAL) which would give me 1mV resolution  ..?
Logged

Offline Offline
Newbie
*
Karma: 2
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think my post can help you out: http://arduino.cc/forum/index.php/topic,139333.0.html.

I used BitVoicer for the speech recognition part and an electret microphone from Sparkfun.

Just a tip: microcontrollers do not have the processing power nor the memory to perform reasonable speech recognition, so you will need external help.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6141
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I do not want to use ready made shields for speech recognition.
Then, no.  You can't.

Your 8-bit microcontroller with 2K of RAM and A/D that effectively samples at 10k/s (about half of what is required for decent voice capture) cannot by itself do speech recognition.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Montreal
Offline Offline
Faraday Member
**
Karma: 27
Posts: 2573
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the project: http://coolarduino.wordpress.com/2012/10/18/speech-voice-recognition-remix/
As memory size is limited, words length 1 second, which is enough even for two short words phrase. Vocabulary could be stored on SD card, add up a shiled
Logged

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

Sorry I didn't realize it wasn't a public forum.  Here's the code to show how easy it is on Electric Imp:

Agent:
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");

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

//All you need to setup is line 3,4,5
//Account ID, authorization Base64, From, To, App ID
//The App can run any Twiml script you like:

<?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/o0oLaaaa&quot; />
</Response>
Logged

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

Skype Brighteyes3333
(262) 696-9619

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1072
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I do not want to use ready made shields for speech recognition.
Then, no.  You can't.

Your 8-bit microcontroller with 2K of RAM and A/D that effectively samples at 10k/s (about half of what is required for decent voice capture) cannot by itself do speech recognition.

I would agree that this is not an 8-bit type project.  I don't completely understand that Electric Imp idea but I think the general idea is to consume a web service to do the voice processing.  If that is the case, I know you can make HTTP calls from the Ethernet Shield (i.e.  http://arduino.cc/en/Tutorial/WebClient).  So it would be possible, I guess, to maybe grab audio off a mic, throw it onto an SD card, and then send that off to a web service, and maybe get something back actionable.  But this is all pretty complex for Arduino and certainly will require a connection to a backend service to make it work.  I've done voice recognition on Windows - there is a built-in API for it that almost nobody has ever heard of - http://en.wikipedia.org/wiki/Microsoft_Speech_API.

I just looked at the Imp.  I never even heard of the Electric Imp before.  Seems like a really cool device, but you have to go through their cloud which means a lot of setup and you rely on them being in business next year.  Too bad Google didn't think of this.  I guess this is totally viable for a project.  You still have to do your speech recognition in the cloud, but it makes sense to me that that is really the only viable place to do it.  Nice product - it is a third the price of the WiFi Shield.

https://www.sparkfun.com/products/11395
« Last Edit: April 26, 2013, 09:34:20 am by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

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

You can use an android device to do the speech recognition (You can use app inventor if you dont want tose the SDK) and send the result to the arduino over bluetooth
Logged

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

Love the Imp!  I'm on my 10th project in under a month...

http://electricimp.com/product/
Logged

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

Skype Brighteyes3333
(262) 696-9619

Pages: [1]   Go Up
Jump to: