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


Similar Posts:


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

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 2.0 :: Possible To Use Flash To Record From A Microphone To Local Disk?

May 11, 2004

Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?

View 1 Replies

ActionScript 2.0 :: Use Flash To Record From A Microphone To Local Disk?

May 11, 2004

Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?

View 1 Replies

ActionScript 3.0 :: Record Sound From Microphone With Flash Player Lower Than 10?

Jan 4, 2011

Is it possible for me to record sound from a microphone using a lower version of flash player, say Flash Player 9?

View 2 Replies

Flash :: Record Using Microphone And Save It In Local Disk Drive?

Jun 14, 2011

I got the code

var mic:Microphone = Microphone.getMicrophone();
mic.setUseEchoSuppression(true);
mic.setLoopBack(true);

when I browse thru adobe documentation for microphone access. But I could not find a way to record the sound and save it in the local drive.How to store the sound in local drive???

View 2 Replies

Professional :: Record The Sound Through Microphone

Dec 5, 2010

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.

View 2 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

Professional :: Record Sound Using A Microphone And Then Upload It To Server?

Jun 29, 2010

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?

View 2 Replies

ActionScript 2.0 :: Record Sound Through Microphone With Background Music?

Jun 22, 2009

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 ?

View 0 Replies

Media Server :: Record Microphone Modify In Realtime Bytearray?

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

Actionscript 3 :: Reactivating The Camera/Microphone Allow Panel In Adobe Flash

Jun 21, 2011

When an Adobe Flash program accesses a camera or microphone in Adobe Flash, Adobe pops up a panel to the user if they want to Allow or Deny access. If the user clicks Deny, I would like to pop the same panel back up. However, trying to access a microphone or camera again doesn't seem to do it.

I know there's Security.showSettings(SecurityPanel.PRIVACY), but this is a slightly different popup which has a "Remember" option which I explicitly do not want.

Is there a way to repeatedly popup the Allow/Deny confirmation without the Remember option?

View 1 Replies

Actionscript 3.0 :: Build A Small Application So That Users Can Record Their Voice With Microphone?

Nov 9, 2008

I would like to build a small application in AS3 so that my users can record their voice with microphone.I know there is a Microphone class but I don't know if AS3 allows to record the voice into a file that will be stored on the server.Is that possible to do so only with AS3?

View 2 Replies

Flash :: Record Movements In Adobe Cs5?

Mar 1, 2012

recording movements while dragging an object and when the object is dropped the record event will stop and the recorded movement will be animated by Play button.

View 1 Replies

ActionScript 3.0 :: Sample Data Event Not Firing - Record Data From A Microphone To A Byte Array?

Dec 13, 2010

I have bought Learning AS 3.0 (O'Reilly) but I have been having difficulty getting one of the tutorials to run. The tutorial shows how to record data from a microphone to a byte array, playback the saved data and save as a WAV file. For some reason, I can't get this working. When the swf runs, the Flash Settings screen doesn't pop up to request permission to access the microphone but I can still trace properties such as gain.

I've uploaded a zip containing all the classes and an FLA - just use RecordMicrophone_Example.as file as the document class. Here is the problematic area of the code:

[Code]....

View 0 Replies

Media Server :: How To Record Meeting Like Adobe Connect

Jun 8, 2011

I am creating conference application in flash cs4. I need to record meeting like adobe connect. How they record meeting?

View 5 Replies

Flex :: Record Audio And Video At The Same Time Into Flv In Adobe Air 2.0?

Jan 30, 2010

How to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and Audio will be sinchronised?

View 1 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

Flash :: Swf File To Be Compressed?

Sep 8, 2011

I tried converting a .swf file into .avi through ffmpeg, and I got the error 'compressed swf format not supported'. How does a compressed .swf differ from an uncompressed .swf file? How do you specify which one you want to make, and is it even possible to? How would you decompress a compressed .swf and what should you expect to find? I googled a lot of these but I didn't manage to learn much from the bits and pieces I found.

View 1 Replies

Does Flash Support Compressed Audio Types Other Than Mp3

May 7, 2009

I would like to add a very small and simple Flash audio player to my website.  I have found lots of Flash MP3 players, but I can't seem to find players that will work with other types of audio files, such as aac/m4a/mp4.
 
I had previously been using Windows Media Server to stream WMA files on my site, but this only works for Windows users, and I need streaming to work for Mac users as well.  So I think Flash is the way to go, but I cannot use mp3's because of licensing concerns.
 
I've been looking and looking for a flash player that supports other audio types, but can't find one. Is it true that flash has a native class for mp3, but doesn't have built-in support for others?

View 1 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

Which Flash Video Format Is More Compressed FLV Or H264

Apr 7, 2010

I read an Adobe article which demonstrated H.264 video playback support in Flash Player. Would video encoded in this format be more compressed than typical FLV videos? Should I be using this format for video I place on websites from now on?

View 3 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

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

Professional :: Flash File 1920x1080 (touchscreen) Compressed To Website Version 945x532?

Aug 3, 2010

We have create a flash file for both Touchscreen TV and Website.The document frame is is 1920x1080 however we would like to export the project so it can be seen on the website at the correct compression.Is there a way to export the SWF to the required 945x532.I know how to export it in the HTML however this reads the same SWF that is still too large in file size (not web friendly).I could pull the compression down to say 10% before exporting the SWF however there must be a better method.

View 5 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

Professional :: Why Is Audio Overly Compressed And Distorted

Feb 28, 2011

I have imported voice-over into my flash animation project as a WAV file. When I test it within the library, it's perfect. When I play it back using "Play" under "Controls" it is slightly degraded. And then when I play it back using "Test Movie in flash professional" under "Control" and when I publish the file, the audio is severely compressed and distorted. Why does this happen and how do I fix it?

View 2 Replies







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