Actionscript 3 - Flash 10.1 - Applying Realtime Effects To Microphone?
Feb 9, 2011
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?
View 1 Replies
Similar Posts:
Sep 16, 2011
I would like to access to microphone bytearray in realtime to modify the sound to record.How can i do this?
View 4 Replies
Aug 14, 2009
I'm playing around with the new Sound API in flash player 10 and I managed to load a mp3 from HD, extract it's bytearray and let it play. While playing I can play around with the pitch in realtime.
Now I want to add distortion, bass and echo on the sound, the only thing is I'm not a music specialist. I don't know the mathematics behind the effects.
View 3 Replies
Jul 27, 2011
I have a flex 4.5 application that uses a mx:VideoDisplay component to display the webcam. how can I add realtime effects to that VideoDisplay component? for example: changing colors, particle/grain looks, wave effects,
View 1 Replies
Jan 19, 2009
I'm very new to Flash CS3 and have set myself the task of creating a flash based website, with the same functionality as [URL] creating the drop down menu - I believe I should be exploring rollovers/rollouts and also applying easing effects, however I have no idea what kind of actionscript to use.
View 1 Replies
Jan 2, 2007
I'm just starting to delve into AS, so this should be easy. I'm applying a simple alpha fade to the onEnterFrame event of a movie clip using AS, and inside that movie clip there is a dynamic text box that gets its content from an XML file. The fade works fine on everything except the text - the whole movie clip fades in, but the text just instantly "jumps into existence".
View 1 Replies
Mar 6, 2012
I have a button I am creating from 2 movieclips in the library. One is the button body (shape converted to MC). The 2nd is a series of button logo PNG's for an additional visual button state change.I add the logo MC with addChild to the button body. Then I add the button body to display/stage container. ll is layered correctly.If I add alpha or transform the color to the button body, it goes to the top - covering the button logo.Not applying the color or alpha to the button body and applying a color or alpha to the button logo has not effect (displays correctly).
View 4 Replies
Oct 7, 2009
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:
package
{
import fl.controls.Button;
import fl.controls.TextInput;[code].....
View 1 Replies
Sep 20, 2009
i am currently working on a audio visualizer in flash but is stuggling to get flash to detect sound off my onboard sound card. Is it even possible now with flash 10? Something like an audio fft but in flash.
View 4 Replies
Dec 24, 2009
var sound:Sound = new Sound();
var req:URLRequest = new URLRequest(url);
sound.load(url)
I want to modify the sound data (an mp3) as it comes in. Specifically, the mp3 will be encrypted using a stream cipher and I want to decrypt the data as it comes in. Is this possible using some type of event?
View 3 Replies
Dec 10, 2010
How can I use Flash AS 3.0 read realtime file.txt ?
View 1 Replies
Aug 13, 2011
i want to make a real-time update for my flash application. Instead on making it refresh each 30secs, i would prefer the push technology. What is the best way to push data in Actionscript 3?
View 1 Replies
Oct 11, 2011
I need to implement a realtime connection between 2 or more players, that will play a Flash game. I've read that RTMFP is a good choice to make this connection the best possible (were best=less lag between actions), but, I am quite new to this kind of things, what documentation/tutorial/guide you think would be the best to get started and finally make a good implementation of RTMFP?
(Also, I read that there are differents servers or frameworks that provide the same, like Cirrus, Red5, etc, what pros and contras have this?, taking cost into account). I was reading the adobe documentation, there is an example too, but I'd love to see some more flash game based example, even a very basic one, so I can extend that functionality and start making tests. I got it working, now, I need to know how to make a webservice for the peer ID interconnection.
View 1 Replies
Mar 28, 2007
Any one know how to (or if it is possible) to send variables from flash to the url address bar in realtime ?
View 3 Replies
Jun 20, 2008
I was curious if anyone knows of any experiments or API's out there that would allow a user to control flash interaction/display etc...via voice or sound commands in realtime with their cell phone? Let me know.
View 7 Replies
Nov 7, 2010
I'm about to build an OOP signup form in AS2 with realtime data validation. There are 3 fields 'Username', 'Password' and 'Email' and two of those will check with the server to see if the the username or email is taken. This is almost identical to the signup form on [URL] The way I've experimented with so far is to begin an onEnterFrame event on the textField as it receives focus. This onEnterFrame function checks for spelling, character count etc When the textField loses focus it then sends the data to the server and checks if it already exists. If it doesn't, it will validate. What I've written works rather well (up until the submitting - haven't worked that out yet) but the code is rather unwieldy and seems too long.
What is the best way to go about building this? Are onEnterFrame checkers the best way to go? Should the data send to the server onKillFocus? Should the submit button trigger all the onEnterFrame validation functions to run again (in case the user didn't wait for validation)
View 1 Replies
Jan 12, 2010
I want users to be able to upload audio files to my server (say, over HTTP.. mechanism doesn't matter much), and then I'd like to assemble those files into a playlist and stream them out over a live RTMP stream to a Flash widget.The catch is: I'd like to begin streaming the audio files before they completely finish uploading. For example, if a user uploads an hour-long mp3, I'd like it to be able to begin playing on the RTMP stream once, say, the first minute has been uploaded.I'd like to support mp3 and AAC, and would hope to avoid re-encoding the files. Is is there a way to make this work with Wowza, Flash Media Server, or some other clever solution?
View 2 Replies
Apr 3, 2012
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.
Is there such an audio solution out there?
View 1 Replies
Apr 1, 2011
I'm looking to create a flash game eviroment where a client's members can play each other in a realtime environment. Mostly trivia question type things, and maybe some shared animations. I've done this over RTMP before with a host that also provided video streaming, but I only need the Shared Object communications this time. does Shared Object communication take just as much resources as video to support?
View 1 Replies
Jun 1, 2011
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.
View 3 Replies
Oct 17, 2011
Is there a possible way to access the computer microphone from a web document (open in a browser) without have to go through Adobe Flash ?
View 1 Replies
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.
View 2 Replies
Mar 14, 2012
I working on a project where the client side need to capture video and audio from the camera, use some library (proberly ffmpeg) to convert from mp4 to flv and send it to flash server on realtime,in the other side the client need to get flv and convert it to video type of android on real time. Is it possible to do?
View 2 Replies
Apr 5, 2010
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.
View 1 Replies
Jul 30, 2011
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.
View 1 Replies
Jul 16, 2008
In my project i need to get the data from the microphone and webcam to upload in the webserver. how to get the data from those devices
View 1 Replies
Apr 4, 2011
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.
View 13 Replies
Jan 21, 2011
How do i disable the flash prompt that comes for microphone and camera access.
View 2 Replies
Dec 19, 2011
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?
View 1 Replies
Feb 3, 2012
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?
View 1 Replies