ActionScript 3 :: Microphone Class - Number Of Audio Samples

Jul 7, 2011

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.

View 1 Replies


Similar Posts:


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.

View 2 Replies

Actionscript 3 :: Adobe Flash Record Compressed Samples From Microphone

Dec 15, 2011

I want to capture audio samples from the microphone in my adobe AIR application and then save them to an flv file. I have the following code:

mic.setSilenceLevel(0, DELAY_LENGTH);
mic.codec = SoundCodec.SPEEX;
mic.encodeQuality = 6;

[Code]....

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?

View 1 Replies

Actionscript 3 :: Get The Total Length Of Samples Of Audio In Flash?

Mar 28, 2012

I'm having a lot of trouble getting the total sample length of an mp3.

Also, when I load in the mp3 it does not play all the way through. It plays about half of it's length.

The mp3 I'm testing can be found here, [URL]

The code I'm using to play the sound is:

[Embed(source='assets/ffmangun_loop_79393.mp3')]
private var _snd_class:Class;
private var sound:Sound = new _snd_class as Sound;

[Code].....

View 1 Replies

Media Server :: Stream And Audio Line Level Feed Rather Than The Audio From A Computer's Microphone?

Apr 1, 2012

Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?

View 1 Replies

ActionScript 3.0 :: How To Capture Audio Via Microphone

Sep 25, 2008

I am a newbie to this Flash Segment. Though for my recent project i am diving into it. I want to make "A Flash app which will Capture user voice from microphone. It can be appended if paused. After recording done i want to upload the file to the server. so that i can play it back when required." I tried this with java applet but the UI is too bad so i am thinking in respect to flash. What i found till now is for this i have to go for Flash Media Server which is not possible in my project. I want a simple player. You guys rocks that i can easily understand after some wondering in this forum but did not get my solution so thought of posting it.

View 1 Replies

Flex :: Audio - Draw Waveform For Microphone?

Oct 8, 2010

I'm making a audio recorder with Adobe Flex (Microphone, NetStream), I want to get the current audio wave from Microphone to display in the visualization area, how can i get the data?

View 1 Replies

Handle Cue Points In An Audio File (from Microphone)?

Mar 30, 2011

I'd like to record audio from a microphone and I'd like the user to be able to add cue points during the recording so when he loads the file afterwards, he can jump easily to a specific position.

I don't really know what file format I should use and how to store the metadata (cue points)

I thought about

encoding a wav/mp3 and stores metadata in a .cue file (easy to do but 2 files to store)storing XMP data in a mp3 file (seems a bit harder but standard metadata embedded in 1 file)flv/f4v with audio only and standard cue points but I'm not sure I can create them directly from the client

View 3 Replies

ActionScript 2.0 :: Recording Audio Output Without The Microphone?

Dec 2, 2006

I am having a problem trying to record internal sounds made from the flash file.I can record sound from the microphone no problem,What i want is to be able to record the sounds from the flash file without isung the microphone etc.

View 2 Replies

ActionScript 3.0 :: Stream Audio From Microphone To Server?

Jan 14, 2010

I am trying to stream audio from flash app directly to server. We strongly prefer not using Flash Media Server.

I have very little AS3 knowledge. I managed to connect to Mic, speak and hear my voice back. However, I am not sure how to stream this to PHP or rails server side.

View 2 Replies

ActionScript 2.0 :: Getting Audio From Microphone Using Flash Interface?

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

ActionScript 3.0 :: Detect Input Audio Tempo Via Microphone?

May 22, 2009

Is it possible for Flash to detect the tempo of audio coming through the microphone (ex. - someone singing into the microphone or playing music on their computer)?I am trying to figure out whether this is possible.

View 2 Replies

Flash Player 11 :: Encode Microphone Raw Audio Data To AAC Or Mp3?

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

ActionScript 3.0 :: Microphone Input>Delay 3 Seconds>Audio Output?

Dec 2, 2009

Basically I want to recreate a sound installation that I made a couple of months ago which used Logic Express and a Tape Delay effect to take ambient sound captured by a mic, delay its output by 3 seconds, and then play it into the headphones. All without recording anything and in realtime.I've basically got this far, which lets me hear the mic input through my headphones loud and clear. Now all I want to do is apply a 3 second delay to the input before it outputs. Do I have to send the audio to a buffer where it can be constantly stored and rewritten?

Code:
//Create a new Microphone
var mic:Microphone = Microphone.getMicrophone();

[code].....

View 3 Replies

Media Server :: Microphone Activity Level At -1 Even Though Microphone.getMicrophone() Is Called, Why?

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

Flex :: Audio - Recording From Microphone From Within The Browser Using Flex Or Processing?

Jul 24, 2009

A groups of friends are working on a little game that would listen to the microphone as part of the interaction. We've tinkered with processing and flex. What we'd like to know is if anyone has succeeded in:

recording from the microphone using a web app

performing an FFT on this microphone data

In the case of flex, according to the docs "Because sound data from a microphone...do not pass through the global SoundMixer object, the SoundMixer.computeSpectrum() method will not return data from those sources."[1]

View 2 Replies

Android :: Microphone Class Supported?

Mar 28, 2012

I saw a lot of issues about using Microphone in Flash on Android on the Internet. But my own flash applet does not work, saying "mic not detected". Also there is a note in AS3 reference, that Microphone class is not supported on any mobile device.

View 1 Replies

ActionScript 3.0 :: Creates A Class And The Second One Plays Audio Related To The Class?

Aug 18, 2009

I have two classes. One creates a class and the second one plays audio related to the class. When the user clicks the right answer the quiz gets removed from the stage, but my audio keeps playing. I am wondering how I remove/kill the audio class/object at that point.

My class gets created like this:

private var quizAudio:CaseStudyQuizAudio;

and further down:

quizAudio = new CaseStudyQuizAudio(theAudio);

When I tried to kill it, I was think this would do, but to no luck so far:

quizAudio = null;

delete quizAudio;

How is this done?

View 3 Replies

Actionscript 3 :: Flash Pixel Bender: Number Crunching For Audio Processing

Nov 10, 2010

I've seen some example of using a Pixel Bender for mixing two tracks together (per shader passes). However, would it be technically possible to write a Pixel Bender kernel that could do this?

[Code]...

View 1 Replies

ActionScript 3.0 :: Samples Of Top Of Pages

May 15, 2010

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.

View 0 Replies

Professional :: Deliver Music Samples Over The Website?

Aug 24, 2010

Have a soul band for hire music site and i'm wanting a media component tutorial so i can deliver music samples over the website.

View 1 Replies

Professional :: Iphone Touchscreen Code Samples?

Sep 11, 2010

Would anyone like to share iphone touchscreen code samples with the community? I would share mine, but I don't have a clue.

View 3 Replies

Basic Flash CMS Samples To Change Pic And Text

Jan 23, 2009

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.

View 3 Replies

ActionScript 3.0 :: Sound Samples Free Download

Jul 22, 2010

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.

View 2 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

Actionscript 3 :: Import - Can't Find The Line In The Adobe Samples For A Maze Game?

Feb 20, 2010

I can't find the line in the Adobe samples for a maze game where the actual .as code is included into the project. This is fundamental, since my own implementation is just using include "file name";, which isn't working. I also can't use import, since I then can't access the elements placed on the stage.? The files are available here http:[url]....

I tried to debug the code, but I can't even find the point where the constructor is called. The execution starts at "stop()" in frame 1 and then if you step into it, calls the enter frame event handler.

View 1 Replies

Javascript :: Flex Graphic Editor / Samples Open Source Projects

Feb 2, 2012

I need to create an application, the main срфддутпу will be to work with graphics. The application will contain the basic operations with geometric shapes and creating your own shapes.When creating, I would like to rely on ready-made examples of graphic editors. To do this, I'm looking for examples of open source projects.

View 1 Replies

ActionScript 2.0 :: Displaying Lots Of Clickable Thumbnails Of Product Samples In Flash?

Apr 11, 2007

i've been batteling with this for over a week now and i've just been unsucessful. I wonder if someone has got a better solution/theory to solve my problem I am trying to make an online product selection in flash. So the user goes from stage 1 to 6 choosing different options.

The first stage is where they choose the material. I have over 100 different materials to display! I want to put them in a database so i can update it later and also apply filters on the display page, because each thumbnail needs to store the Picture url for thumnail and main picture, the name of the material, the Price range code, the Colour description, pattern description and the material description.

How can i achieve this?! I really have looked high and low for something that stores it on one page and filters can be applied. It just needs to fill a movie clip with as many thumbnails as it finds in the DB, whilst storing the information for each thumbnail. Eventually i would like to add a button below each thumbnail which says 'select this one' which then just sets a variable to the name of the thumnail button they clicked.

View 6 Replies

ActionScript 3.0 :: Class - Load The Audio File In Frame

Oct 10, 2009

I made a doc class and a sound class. the sound class purpose is that if ever add sound i can just recycle easily the code to use and via the doc class just load it intot he correct frame. Issue: I made the sound class and it loads correctly for the first frame... But i want to add ANOTHER audio file, how would i alter my code setup so i can load the new audio file but instead on frame 1 always... i want to be able to load the audio file in frame 3 or 5 or 25.... How do i do that with the code i have setup??

[Code]...

View 1 Replies

ActionScript 3.0 :: Stream AAC Audio File Stored Locally Using NetStream Class?

Jan 25, 2010

I would like use NetStream class to stream AAC audio file stored locally on server (because i can't use Sound class, AAC not compatible) How can i do this ? (without flash media server)

I have tried using http protocol, no errors occured, but i receive no audio data.

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved