Flash :: Using Microphone To Interact With Webpage?
Dec 8, 2011
I am looking for advice how to set web pages where user can interact with it using microphone. The aim would be that user can say word and the word would be recorder and the file compared on server with another sound (word) and then the result (the searched word) would be displayed. It would be a spoken dictionary.
I'm setting up an application where I need to record users' voice every so often during the course of the users' interaction with the application. Recording is fine, and the quality is fine, but now my issue is understandng how Flash handles the microphone when it gets attached to a stream for publishing.Basically, the problem is that when I "publish" my stream, the voice gets cut off (clipped) at the beginning. So, I initially thought this may have to do with buffer settings on the FMS server side, but it wasn't. Then I investigated client side stuff. For some reason, my internal mic .activityLevel property is -1 even though I have called Microphone.getMicrophone(). According to Flash's documentation, this shouldn't be the case:
activityLevel propertyactivityLevel:Number [read-only]Language Version : ActionScript 3.0Player Version : Flash Player 9The amount of sound the microphone is detecting. Values range from 0 (no sound is detected) to 100 (very loud sound is detected). The value of this property can help you determine a good value to pass to the Microphone.setSilenceLevel() method.If the microphone is available but is not yet being used because Microphone.getMicrophone() has not been called, this property is set to -1.I am using a timer to investigate the microphone .activityLevel property every 50 milliseconds:
I'm currently working on a corporate intranet application. Part of the requirements are to have the application start a program on the users local PC (Minitab) and then have the webapp communicate with it via it's COM interface.
What are my options for doing something like this?
A signed Java applet and Jacob ActiveX and .NET (this will only work in IE, correct?) Flash? (can flash be given permission to the local PC?) Silverlight???
I'm leaning towards trying the java approach (all users will have Java and flash installed) but am wondering what's the path of least resistance.
The application runs from Apache2/Python/modwsgi on Gentoo Linux. All users will be running WinXP or Win7 with Firefox or IE6/7/8.
I am trying to create an automated program in Python that deals with Flash. Right now I am using Python Mechanize, which is great for filling forms, but when it comes to flash I don't know what to do. Does anyone know how I can interact with flash forms (set and get variables, click buttons, etc.) via Python mechanize or some other python library?
I have a movieclip on stage: I load inside it a form (via addChild). The form is made of textfields and movieclips and it is contained in a library object of MyForm class, extending MovieClip. So I have:
var myForm:MyForm = new MyForm(); myClip.addChild(myForm);
What happens: the MyForm class lets me interact with textfields (if I change a value of a textfield I can see it very clearly). But I can't manually reach the input textfields and the buttons (they don't respont to pressure, and I can't modify their content in the case of textfields). There seems to be something related to the fact that MyForm is contained inside myClip because if I load the form without the myClip container anything works again. I tried to use mouseChildren and mouseEnabled on myClip but it doesn't work.
My goal is to build a program trader for the upcoming CNBC porfolio challenge. I need a way to collect quotes, current positions and place orders in the flash object.
I was wondering if there was a scripting language that one could use to to interact with a flash object on a webpage? I am trying to automate some tasks but the webpage uses flash. Edit: I am trying to fill out a form basically click a few "check boxes" and then a submit button but I would like to know if its possible to automate this task.
I'm considering taking on a new project for myself - nothing particularly major - but I've a few questions that I'm certain anyone with some serious experience with Flash might be able to answer for me or perhaps (hopefully) guide me in the right direction for alternatives.
So I have an idea for a horizontal menu that I want to design using Flash (I've only experience with AS3 - odd as that is? - so that'll be how it'll be designed). As I'm coming to understand it's difficult/impossible to have the embedded flash interact with other portions of the HTML, so for every time that a menu item is clicked, is the only way to go about moving to that page just having the entire page effected - ie each page (home, port, etc) has to also include the embedded flash as well, or can I just have it affect some subwindow or section of the page, instead?
Since I've never done this and the google results are quite random, I ask here: Is it possible to display Flash movies inside a Flex application and interact with them?
The scenario is as follows:
I'm developing a new application in flex Another, already completed application is given to me as SWF (or perhaps SWC, don't know any details yet) I have to insert this second application inside in my Flex application, which should be no problem afair I have to interact with this application: send and retrieve data. Don't know any further details here, too.
Will this be possible? Or is Flex only capable of displaying the SWF without the possibility to interact with it? I hope you can understand, what I want (have to...) do.
I've been trying to understand how flash animations or a Java Applet work within a browser. I can think of a couple of ways - The Flash Player/Java Applet are machine code that's dynamically linked it, and given some parameters about the area of the screen that belongs to them; after that, they run within the same process space. The browser exposes an API that the player/applet use to talk to it and they live in a separate process. (Presumably they talk via sockets?) The API could correspond to openGL/X11/some custom calls.
These possibilities still don't explain things like how a button click can make the player full-screen, how it can play music, how it can inspect the DOM, etc. For that matter, is the video displayed by decoding to a sequence of images, and rendering them one at a time, or is there a more efficient way, e.g., of pushing the deltas in the image? The Wikipedia page on Java Applets
(1) talks about how the applet is run in a sandbox (presumably a separate process), but it doesn't say how the browser and the applet communicate. Perhaps the answer depends on the underlying platform?
Im learning flash actionscript at a local college and have been asked to find out 3 ways how the kernel could interact with my application when creating an actionscript project.
EDIT: The Kernel is a class that is being linked to the swf. Weve been asked to find out how the Kernel can effect and interact with the application. This is the class thats been created:
public class kernel extends MovieClip { public function kernel() {
It appears that if one has a mic available, then one can add an event listener for the StatusEvent. However, this only tells you if the mic has been allowed or disallowed.
What I'd really like to do is detect if the static Microphone.names property changes. I would have expected this property to be bindable.
If I right click and select "settings" immediately after plugging in a mic, I can see that flash has updated their list of available microphones. However, there seems to be no way in code for me to receive the same update.
The docs say "Calling Microphone.names requires an extensive examination of the hardware, and it may take several seconds to build the array." So I think polling this every few seconds is not a feasible option.
I am trying to figure out how to create a flash slideshow including buttons that interact with the slides. A perfect example of what I am trying to create is the flash slideshow on the Frito Lay's website[url]....I am sure there is some action code for the button that can do this, but being to to Flash code.
There may be more than one answer to this, but I'd like to know if there's some technology out there that exists to handle Audio Processing / Playback in realtime, so that Flash can:
Interface with the technology / plugin to generate sounds with no delay or lag. Apply DSP effects (Reverb, Delay, Dynamic Range Compression / Expansion, Distortion, etc). Manipulate DSP parameters in realtime (sweeping an EQ filter's band or Q).
The most important thing of all, would be for this technology to be available to most users, as it would likely be used for Gaming environments or online Audio production, even. So far, Flash has a few ways to manipulate Audio Data, such as the SampleDataEvent, Andre Michelle's Popforge library, chiptune libraries like SiON, and possibly some other unheard of libraries.
I'm not really convinced though, that these methods are the optimal ways to create interactive sounds - sounds that change depending on game conditions, sounds that closely responds to the users actions. Nothing (that I've seen so far) easily allows developers to create or communicate with a DSP effect in order to manipulate the sound in this way, in realtime.
I know that Flash has the ability to communicate over sockets / ports, so perhaps there is an existing library that can communicate with an external plugin, and can be easily distributed to users at the same time.
I'm playing a flash game on facebook. I know I can decompile it to find out all the commands and would like to make scripts to automate the game by calling procedures in the actionscript of the game. So I guess I would like to make a plugin also that would insert this console into any flash app and this would be handy for a lot of things. Then if anyone wants to hack a new game, u just decompile it and make a handbook of methods for people to make scripts with. So how would I go about making this console? I don't know if I could make a swf interact with the game or if it has to be compiled into the game's swf. Or if it is easier with javascript, that is cool too. maybe we can make a javascript library just for this. anyone can tell me more?
I have a movie clip that displays an embedded html with a bunch of divs that are expected to hide and show other divs when the users click them. i.e. imagine that you have a span with an instruction in javascript to show a div when you click it. I already made the html file, the external css and the external js. The movieclip (in actionscript 3.0) loads and displays the html content and also the css, but i haven't managed to figure out how am i supposed to link or use the javascript to do the trick. I've tried so far doing an exhausting research over the internet for the past few days and the only infromation i've got is that web developers use externalInterface to access javascript functions, but they use flash buttons to execute the js code, and it appears to me that i cannot use or embed flash btns in my site. I don't know, I'm kinda new to flash and this is the first time I work with actionscript 3.[code]or how do I achieve de hide/show thing with another method? I'll be wandering around the site in case you have any extra doubts about this subject.
We're trying to get microphone input in a Flash movie and the post it to the server so it can be saved in a file.
Currently, we're using PHP in the server, but I guess the key thing here is: How to post the audio to the server?
After a post is made, then I guess it'd be a matter of handling the encoding and saving to a file, which can be done with pretty much any server-side language.
exporting a bytearray to a wav or mp3 (or anything that runs!) from my flash code to my php page. I am using microphone recorder to record voice, i use a a url request to send my ByteArray to my PHP page.i send the bye array from flash like this:
var url = "http://localhost/wordswesay/uploads/testrec.php"; var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream"); var request:URLRequest = new URLRequest(url);
[code]....
at the server side (the sime file as the php script) i get the test.wav with about 200kb of size but i can not play it! media players says it can't play this file as the codec might not be supported.
Is there any way to make a flash object where users can interact but has no server side support. All users are in the same network, the swf file would be on a shared drive. Nothing complicated, just one frame where everyone (about 10 user) can make modification. No login, no password.
I'm working on a project for my Flash class that seems to be above everyone's heads. What I'm trying to do is figure out how to take sound from a microphone, register the level/volume of that sound in flash. So if the level is 25 then a movieclip and a different sound is played back. Problem is I don't know what coding I can use to register a microphone and take whatever sound is put into the microphone and display a movieclip.
I'm trying to write a flash application which takes a Microphone stream and applies realtime effects and outputs this back to the speakers. I'm finding I'm having problems with stuttering when taking the output from the mic, copying this into a ByteArray amd then using a seperate
sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA, processSound); sound.play();
to read from this ByteArray and play back the sound.I have noticed that the input from the mic's bytesAvailable changes, and also that the two events (the mic's SAMPLE_DATA and the sound's SAMPLE_DATA) aren't firing A B A B A B A B like would be needed but is more random.
Am I right in thinking that the mic.SAMPLE_DATA event fires at different intervals with different amounts of data and a working implementation would need to read the available data in and buffer the input so that the Sound SampleDataEvent would always have something to play back to avoid the stuffering?
We need send h264 from flash to Wowza and after to vlc by RTSP protocol. But if we send sound in Speex codec, we not listens sound. what it is possible to make?
I am trying to create a Flash application(more like a game) where a user can add sounds to a timeline and then play the resulting "song". That is not really hard to do, and the resulting track can be saved and played within my app, but the problem is that I would like to export the created track as a .wav(or .mp3). I know that recording from a microphone with MicRecorder is possible and then the record can be exported with WaveEncoder, but I didn't find a way to create a custom sound stream from multiple sounds and than export it. Is this possible?