PDA

View Full Version : Voice Input / Voice Recognition in Flash


deluxmilkman
03-03-2008, 02:38 AM
hi,
I`m trying to voice input into flash.
For instance, when I say "A", the letter "A" shows up in flash.
It does not need to work online, jut locally on my mac.
Does anyone have any idea where to start?

Thanks

ASWC
03-03-2008, 05:02 AM
Use java or any core programming languages for that like C++ and such. You won't be able to do that with Flash. And get at least a master in computer science.

deluxmilkman
03-03-2008, 05:11 AM
Thank you for your replay.
i was thinking about using voice recognition software and get string data from it. DO¥o you know what to use?

ASWC
03-03-2008, 05:25 AM
I have no idea. I know there are some voice recognition software around, maybe try to find an open source one but I have no idea if you are gonna be able to find that. Flash is too limited in sounds frequency handling, I'm even pretty sure Flash does not handle frequency at all.
Look for C++ and DirectX SDK, also I did not check recently where the OpenAl project got, you might want to google that. There are some libraries available as SDK for most core programming languages such as "fmod" for example, some of them MIGHT have buit-in voice recognition libraries.

deluxmilkman
03-04-2008, 01:56 AM
Is it possible to integrate Mac`s built in speech recognition feature ()or any other speech recognition software) into flash?
I am trying to make a speech recognition based flash application. It does not need to work online, jut locally on my mac (no communication server needed).
any ideas from other developers where to start?
thank you in advance.
:confused:

CyanBlue
03-04-2008, 01:53 PM
Howdy and Welcome... :)

I don't think that's currently possible...

xxneon
03-04-2008, 01:57 PM
I would think that you would almost have to develop your own custom projector file so that the projector had access to the voice recognition.. and once the projector has access to it .. then your swf could use it via custom methods that you make available to your projector..

way over my head .. but its a theory.

asf8
03-04-2008, 02:56 PM
Is it possible to integrate Mac`s built in speech recognition feature ()or any other speech recognition software) into flash? I am trying to make a speech recognition based flash application. It does not need to work online, jut locally on my mac (no communication server needed). any ideas from other developers where to start? thank you in advance.

this sounded interesting so I Googled around a bit, does not sound simple, if possible at all and is miles over my head, but again sounded interesting and I was curious.

SpeechXML
Download SpeechXML which is a program that makes it possible to use Microsoft Office's built-in speech recognition with Flash
http://www.daimi.au.dk/~thomasr/interaction/SpeechXML.html
SpeechXML Flash
http://www.google.com/search?hl=en&q=SpeechXML+flash&btnG=Search

Voice XML - Voice Extensible Markup Language
http://www.w3.org/TR/2001/WD-voicexml20-20011023/
http://www.impossibilities.com/blog/pivot/entry.php?id=59

Again way over my head and I have no clue how or if those work with Flash. Like CyanBlue stated its probably not possible, even with AS3 and its more advanced sound capabilities, I also didnt find anything for AIR apps either.

ASWC
03-04-2008, 05:20 PM
For info you don't need to post a third time this question since everybody will tell you what I told you for your first post: Not possible in Flash.

CyanBlue
03-04-2008, 06:08 PM
Let me know when that happens, and I'll merge the crossposts...

Durnus
03-04-2008, 08:49 PM
Well, I'm not sure about your specific voice recognition system, but I am sure that it is not able to be built into flash for a web app.

Couldn't you make a text box that always had focus, and have your voice recognition system write stuff as text, into the textbox? Then you might be able to get each word as it comes in and do stuff with it. I've been playing with this thought for a while actually, I've never tried it tho. Just my two cents!

CyanBlue
03-05-2008, 01:38 PM
have your voice recognition system write stuff as text, into the textbox?
Um... How would you achieve that???

deluxmilkman
03-05-2008, 02:20 PM
Um... How would you achieve that???

I was able to type in input text using the following method.

http://lifehacker.com/software/speech-recognition/hack-attack-make-your-macs-speech-recognition-work-for-you-215764.php

For this to work, I have to need to pre-made every words to be recognized.

asf8
03-05-2008, 03:26 PM
I was able to type in input text using the following method. http://lifehacker.com/software/speech-recognition/hack-attack-make-your-macs-speech-recognition-work-for-you-215764.php For this to work, I have to need to pre-made every words to be recognized.

input text? So it will be text to speech?

Create a Flash Speech Synthesizer
http://www.oreilly.com/pub/h/1568

http://en.wikipedia.org/wiki/Phonics
http://en.wikipedia.org/wiki/Allophone

If its text to speech then maybe the Flash Speech Synthesizer link will help. Again its over my head but maybe you could write some function that assmebles the needed audio snippets sequence based on user text input and when the user finishes typing it speaks it? That way its just a limited number of sounds used to make all words.

deluxmilkman
03-05-2008, 03:33 PM
input text? So it will be text to speech?

Create a Flash Speech Synthesizer
http://www.oreilly.com/pub/h/1568

http://en.wikipedia.org/wiki/Phonics
http://en.wikipedia.org/wiki/Allophone

If its text to speech then maybe the Flash Speech Synthesizer link will help. Again its over my head but maybe you could write some function that assmebles the needed audio snippets sequence based on user text input and when the user finishes typing it speaks it? That way its just a limited number of sounds used to make all words.

no, it`s speech to text. I wrote apple script to type "a" KEY When I say "A".

asf8
03-05-2008, 03:38 PM
no, it`s speech to text. I wrote apple script to type "a" KEY When I say "A".

ok, giddy up then ;)

ASWC
03-05-2008, 04:47 PM
Well, if you were able to write an "apple" script (and by the way what the heck is that?) that recognizes what people say, first let me tell you that you are a genius, with probably a PHd level. It's surprising that at your level you are not able to see that such a thing is not possible to do in Flash. It's possible to do but just NOT IN FLASH. Flash as no built-in capabilities for this kind of application, worse, Flash has very limited capabilities in term of external desktop software communication. Again, Java, C++, C, basic, and such are what you need to do that+ your Phd degree and you should be all set..

xxneon
03-05-2008, 04:52 PM
just like i suggested from the beginning
develop your own custom projector

fucrate
10-09-2008, 01:09 AM
I'd be interested to see if you could save the microphone output as binary data. If so, you could probably then send it to a server running some Java voice recognition software which could perform the heavy lifting and send the result back to the flash client. Still not doing it within flash, but users wouldn't know the difference :)

Mad_Bob
10-21-2008, 04:20 PM
ASWC, saw your reply in this post. You first give the guy "DeluxMilkman" a response of no and then tell him off for carrying on his quest past your comment. You then go on to tell him "you are a genius, with probably a PHd level. It's surprising that at your level you are not able to see that such a thing is not possible to do in Flash". How can you express comment when you didn't even understand what applescript is and what the guy was doing with it. Additionally, how can you post comments when you clearly state you don't know what your talking about.

n3wtz
10-27-2009, 07:11 PM
but this seems to be what fucrate was suggesting - unfortunately the demo link is dead...

Here is the Link (http://cbuckleysblog.blogspot.com/2009/03/java-speech-recognition-and-adobe-flex.html)

I'm interested in getting something like this to work - I'll probably end up going with a custom projector and Microsoft SAPI, but all in a browser would be much more elegant.

ecret
12-31-2009, 07:55 PM
Sorry for the response to an old post.
I made a speech api that works with flash. It is free no registration required.
The site is www.speechle.com/api

Some demo apps that you can try or just copy to your webserver and try are:
http://www.speechle.com/static/rps/rps.html
http://www.speechle.com/static/what.html
Or try something more advanced at www.speechle.com a quiz game I made.

I already posted this in the site check section but wanted to answer here as well.

secret007
04-09-2010, 12:10 PM
Its possible in flash >> perhaps u have to install flash player 10.1 and use flash CS4 also u need to record ur own voice and than match the patterns with pre-recoded sound to achieve this task ....

javadz
05-30-2010, 01:15 PM
I have put speech recognition demo here http://javadz.wordpress.com/2009/06/14/42/ using Flex and Java. It uses the Merapi Java to AIR bridge and is deployed as a desktop application. There is no reason however why you couldn’t create a server based solution if you wanted to have a browser based application. Source code is available for download.

ArtSkeem
06-05-2010, 10:18 PM
I'm actually working on something similar in flash with sound recognition and movement this should help you in what you trying to do it is actually possible my professor when i was in college did something very similar

http://flash-reference.icod.de/Microphone.html

waseemsafder2003
12-01-2010, 11:30 AM
i think that would help you...

speechapi.com/live-demos/http-parrot.html

speechapi.com

Regards,
Waseem Safder