Recognize sound in Action Script 3 - actionscript-3

I want to create a small application that will be able to recognize sound. That is, it will match input sound with sound pattern that user has already recorded. Then, it will output the result (matched or not), Alert.show() for example.
Can anyone help me ? Thank you in advance...

Actually, a french guy named Didier Brun worked on this, and have quite good managed to do a voice recognition engine purely in Flash. Its not exactly a sound recognition engine, but I suppose it could do the trick, with a little more work.
You can find it here.
He demoed it on-stage at the 2010 Amsterdam FITC and it work surprisingly well.

Related

face recognition as3

I want to build flash application that can detect the user eyes color and hair color etc'
Does anyone know about free library that I can use for this kind of project?
Thanks,
Perhaps you are looking for this library:
http://code.google.com/p/face-recognition-library-as3/
Never tried it myself, but this demo looks promising.
shaunhusain I think that you mistook face detection for face recognition although face-recognition-library-as3 enables both. Comments in source files of library are in Polish for now, but there is documentation in English available online for that library.
In answer to main question of this thread it should be possible to detect only eyes using this library. To do that you should replace HaarCascades in face.zip file to those for detecting eyes, which are part of OpenCV. To detect hair color you could detect face and then analyze pixels just above detected region with face.
Hope that helps.
This kind of visual processing is generally too intense to handle within the single thread and VM that AS3 provides, it's a task better suited to a language that compiles to machine code and has threading capabilities such as C or C++.
Here's something related to the topic, I believe you would be better off just trying to use OpenCV, but it should also contain the appropriate algorithms to port if you have the time and mental capacity to do so: http://www.quasimondo.com/archives/000687.php
Alternatively to avoid all the leg-work you may want to consider using a server side solution like http://face.com/

as3 listening to volume (db) at specific hz

I have looked everywhere, but I can't figure out how to do this.
I want to use a simple drum track, and everytime the kick drum goes off, something in my game should rotate.
Figured I could use the volume of that track at around 50hz or so to drive the angle of my object.
And thats where I got stuck, how do I read the volume at 50hz??
I really hope someone could help me with this!
Thanks!
Dennis
If this is still a relevant question, I would advise looking at Bit101's blog, where he posted a series of tutorials about producing sound. The second one is where he talks about producing specific sounds. (There is a "magic" formula that he uses at one point, described on this wikipedia page.) You can probably use this to backward compile the frequency from a given sound.

Action script tutorial?

Hi I am a Student in Norway looking for a good general tutorial on Action Script and how to use it,and what it's for.
I have been looking around google for a while and I can't seem to find any good or "simple" way to learn or even understand how it works.
sites i've been too:
(http://www.actionscript.org/resources/categories/Tutorials/)
(http://www.flashandmath.com/)
(http://tutorials.flashmymind.com/)
(http://tutorialoutpost.com/tutorials/flash/actionscript)
(http://www.tutorialguide.net/programming/actionscript/)
(http://www.siteground.com/tutorials/actionscript/)
(http://www.kirupa.com/developer/flash/index.htm)
(http://www.freeprogrammingresources.com/actionscript.html)
(http://www.adobe.com/devnet/actionscript.html)
So what do I want to know ?
Basic scripting to advanced scripting.
Where it's best to use action script. (best functions)
A simple yet efficient explenation that alot of people might understand.(if possible)
So if there is any way you guys might be able to help me with this little problem of mine I would be forever in your debt.
and thanks in advance for any info that might come my way, even if it helps me or not.
Check out this too: http://www.gotoandlearn.com/. It has some good free tutorials, but if I remember correctly, you need to pay for the full series!..
And the best approach to learn something is to read the documentation while working on something! Try create a game/small site/interactive animation/etc and when you are stuck, search the answer or ask for help!
ActionScript is similar to Java and C++ but different. It runs on the Flash Player. It is generally used for applications ranging from online games to video players to Rich Internet Applications.
Flash can be developed from 2 perspectives:
Designer's perspective: This approach consists of drawing objects, shapes etc on a stage like you do in an image editing software, and then animating / adding actions to the drawn objects. You develop this in Flash Professional (Link here)
Developer's perspective: This approach consists of developing using the Flex framework, from an IDE (Flash Builder)
Check these out. I learnt it by looking at various tutorials on the net (do a Google search, you'll find plenty), so you can learn from the net as you go.
I often recommend Colin Moock's Lost Actionscript Week End video tutorials , it's an excellent resource if you want to grasp the general concept behind AS3 and leaves you with enough understanding so that you're able to tackle books on Object Oriented programming, AS3 language reference, basically tools that you will eventually need when you get deeper into the subject.
http://tv.adobe.com/show/colin-moocks-lost-actionscript-weekend
Why donĀ“t you try the official Google Action Script documentation? You can find it at https://developers.google.com/apps-script/ . I fount it very useful and easy to understand... It is very well organized and there are many examples with diverse grade of complexity. For example: you have there 5-minutes overview for your first Google Action Scrpipt https://developers.google.com/apps-script/overview#what_can_apps_script_do
And if you are looking for a more complex example, you can go forward to end-to-end examples: https://developers.google.com/apps-script/articles/bracket_maker
That is my first reference point with Google Action Script...

How to detect certain face on the photo

I was just having a nap and then that crazy idea came into my head. Here it is.
We have 2 different photos with face in each. How can we detect if there is the same person on that two photos?
Is it possible to do that? If yes, can I do it with Java or PHP? What the way to do it? Any ideas? Maybe each face has a "algorithm" or something which could help us?
Thank you very much.
It's not an trivial solution (and cannot be covered in an SO answer); you can start by reading papers on facial recognition. If this is something you really want to do, be prepared to read a lot of background information first before you actually start writing code. This subject matter is the basis for a lot of people's doctoral and masters theses. In this case, language is not as important as the algorithm. Also be prepared for lots of math. At the very least, you'll learn something cool. :)
I was freelancing a very similar task. Its not fun. almost impossible to build face recognition - face detection is easy, recognition is the tough part... the algorithm is generally a guarded secret as I've seen.
But I did find this: http://face.com/
Face recognition API. Feed it data, it feeds you names and details you've previously fed it. You have the ability to check to see if a face exists.
If you make a lot of requests or start working at an enterprise level - they charge.
The language doesn't really matter as long as it has the tools to do number crunching on the image data. Facial recognition is too big of topic for a forum post like this. I would just google "facial recognition algorithms".
I agree with the others that this is not trivial.
detect a face in both photos
normalize the facial data
compare the data to see if they match

How to get Mario Kart Wii scoreboard points after race into database

I don't think this is even possible, but maybe I'm missing something. A group of us play Mario Kart Wii in the office. We don't play online, just a couple races. We often have tournaments where we play multiple sets of races over a couple of weeks and then combine the scores at the end. Instead of writing the final points down after each set of races I'd like to "extract" the points for each player from the scoreboard screen and into a database (probably MySQL). My question, is there a way to get the points from the Mario Kart Wii scoreboard screen? If so, I'm sure once I get the data I can find a way to place it into a database. I'd prefer not to totally hack the Wii, but I'm interested to hear if this is possible. Let me know if you need me to further clarify.
Thanks.
If the Wii's video output was to a computer, you could use OCR (Optical Character Recognition) to automatically read the scores and put it into a database that way.
Here's a wild suggestion. Take a picture on the Wii tv screen with a cell phone. send the image to a computer and use OCR to extract numbers. This may be more trouble then simply copying down the numbers and entering them into a spreadsheet /database yourself.
Just entering them into a spreadsheet or database may be your best bet here.
Maybe loser has to enter the figures ?
OCR is out of the question. That is way too complicated for this. I'm thinking I might just make an iPad app to handle the scores.