ActionScript 3.0 :: Get Access To Sound Samples Coming From A Microphone?
May 27, 2011
way to get access to sound samples coming from a microphone ?
So far I have not found such a function. In the meantime I am trying to overload alsa functions e.g: snd_pcm_readi to see if I can get the samples before flash treats them, but no success so far.
As a matter of fact, since I have no idea how both sound and microphone class work internally, I don't know exactly which alsa functions they call.
In Java there is a method of the AudioFormat called getSampleRate This returns the number of samples per second. I was wondering what the best way to achieve this with the microphone in flash is. I am not sure if I need to add a SamplesDatatEvent and use extract() or ?? I need to know the number of samples per second from the audio coming into the mic.
The problem is that I suspect that in my handler I am only getting raw samples and not compressed samples. The reason for my suspicion is that the number of bytes I get per message is equal to 20 ms (which my definition is 1 speex frame) of raw audio and not compressed audio. Also the number of bytes doesnt change if I change the encodeQuality. Reading the documentation suggests that adobe will only compress the audio before transmission to a flash media server or another peer. Is there a way to publish and read the stream locally in order to get compressed samples. ? Or any other way to get the compressed samples?
Does anybody know site, where I can downloud free sounds? I just need it to present something. It doesnt have to be the best quality. I need different sounds like noise, scream, car.
I am trying to export a .swf file which plays video/sound so I can upload the file to a website (embedded). However, the sound does not want to play when in flash. It is basically of a person talking and lasts about 20 seconds. I have exported the file as a .mov using flash mx pro on mac. the .mov file plays in a quicktime but when imported into flash the sounds seems to disappear.
We are working on a project to record a sound a we need to play back in flash 8 (as 2.0). we have 3 buttons like play /pause, record, stop, When we clik on record button we can record the sound through microphone and when we clik on paly /pause button the recorded sound should be played. so can we record and can we play back in flash 8.
This captures microphone sound and changes the alpha of 'foo' according to the sound level. However, I hear the microphones input. I want the visuals to work without hearing any sound. How would I do that?
What I want to know is if it is possible to record a sound clip using a microphone and then upload it to the server using a swf applet in a webpage. Im an experienced java/javascript programmer but just starting out with flash/action script. What technologies will I need to do this? Can I do this simply using simply an swf file and an apache/php or jsp page?
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 am developing an application in flash(AS2) with FMS/RED5. where i want to record sound through microphone with background music(Flash is playing mp3). is that possible in as2 ?
I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.
I am developing an application running in Flash Player. The applicatiosn requestes access to the camera and/or microphone available on user computer.Is there a way in the application I prevent users from seeing this question? i.e. without having user to change his/her Adobe Flash Player setting?
I am trying to animate a mask over a sound meter according to the activityLevel of the microphone. If I understood what's in the livedocs, the activity level is the amount of sound captured by the microphone, right? well, I'm trying to use it in order to do the animation but I have two problems:
1. there's a very annoying sound coming out of my speakers
2. nothing happens when I talk through the microphone
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 looking for webdesign samples made in flash, of the top of the pages, like banners.It could be made in Actionscript or not, but woul would like to see somme samples, or sites.
I want to start basic. Are there any tutorials or samples where I can make a simple flash website with 1 pic and 1 text content in there and be able to change it like in a CMS system using whatever methods are best php, xml, asp. Maybe using PHP or whatever is the standard for Flash CMS at the moment. How to make a simple content management Flash site starting from there. Where an admin logs in and then change the content for the pic and the text.