Draw an audio waveform from recorded sound

I have problem with draw static waveform from recorded sound. Here is an example of which I wanted to use: http://cookbooks.adobe.com/post_Draw_an_audio_waveform_from_an_MP3_file-16767.html
Here is an excerpt of my code, where the recorded sound, and I play it:
    public function startRecording():void
                stop.enabled=true;
                soundClip = new ByteArray();
                microphone = Microphone.getMicrophone();
                microphone.rate = 44;
                microphone.gain = 100;
                microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataHandler);              
            public function stopRecording():void
                play.enabled=true;
                microphone.removeEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataHandler);
                level.width = microphone.activityLevel * 0;
                level.height = microphone.activityLevel * 0;
            protected function microphone_sampleDataHandler(event:SampleDataEvent):void
                level.width = microphone.activityLevel * 1;
                level.height = microphone.activityLevel * 1;
                while (event.data.bytesAvailable)
                    var sample:Number = event.data.readFloat();
                    soundClip.writeFloat(sample);
            public function startPlaying(soundClip:ByteArray):void
                this.soundClip = soundClip;
                soundClip.position = 0;
                                sound = new Sound();
                sound.addEventListener(SampleDataEvent.SAMPLE_DATA, sound_sampleDataHandler);
                channel = sound.play();
            protected function sound_sampleDataHandler(event:SampleDataEvent):void
                if (!soundClip.bytesAvailable > 0)
                    return;
                for (var i:int = 0; i < 8192; i++)
                    var sample:Number = 0;
                    if (soundClip.bytesAvailable > 0)
                        sample = soundClip.readFloat();
                    event.data.writeFloat(sample);
                    event.data.writeFloat(sample); 
Is there any other way than to save the recorded sound as mp3 (which will also be complicated), or can I use this example given and work on ByteArray? I tried to redo it a little, I'm sitting on this already a lot of time and unfortunately to no avail. Any ideas? Tips?
I would like to compare the recorded sound with the original. Draw waveform will be the first step. Maybe you also have some tips of how to compare the two sounds?
I would be very grateful for every answer,
Lilly

Maybe not related to your problem, but your plugins list shows outdated plugin(s) with known security and stability risks.
# Shockwave Flash 10.0 r32
# Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
Update the [[Java]] and [[Falsh]] plugin to the latest version.
See
http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
http://www.adobe.com/software/flash/about/
See [[No sound in Firefox]] and [[Video or audio does not play]]

Similar Messages

  • Missing Audio waveforms from Project window

    I'm hoping anyone can help me.  I'm trying to customize volume within a range of a song.  I've dragged the audio into my project timeline, however no matter what I try  I cannot get the waveform to appear.  I've tried absolutely everything I can think of including reverting layout of the project window. 
    I've worked with audio in projects before and feel I have a fair bit of experience with it but this one has really baffled me.
    As you can see from the image attached, waveforms from other audio clips are showing up just fine but the song running along the bottom, no workie. 
    Any help would be greatly appreciated.
    FCP X 10.0.5
    ML 10.8.2
    MBA 13inch June 2012

    Karsten Schlüter wrote:
    •you should re-name it (before importing to FCPX) - that "." could cause issues.
    (avoid any characters that have a 'function' in Unix, such as . : / )
    A period only has a UNIX function if it is the FIRST character in the name! (hide file from Finder view), so that is not the issue here. ;-)
    And Tom, why should the audio be AIFF?? I drag mp3/m4a files from iTunes ALL the time, without any issues - FCPX even has a native, build-in iTunes browser, so requiering AIFF seems strange, unless FCPX transcode it when it's dragged in!

  • Why is audio disappearing from Extracted Sound Track File?

    I extracted the +Sound Track+ from a .mov file which was originally a .wmv file I'd edited and saved in QT Pro. Regarding the original movie from which I extracted the Sound Track, +Movie Properties+ indicated the +Video track+ as being +Sorenson H.263.+ The Sound Track extracted was +MPEG Layer 3.+
    +MovieProperties/Audio Settings+ displayed Sound Track as a Mono audio track.
    The extracted sound track appeared in a new QT Window/Player as "Untitled".
    I hit play and the audio track played. I saved it as a Self-Contained Movie, hit play and it played again, no problem.
    ( +Movie Properties+ still displayed the +Sound Track+ Format as MPEG Layer 3/Mono)
    I quit QT Pro and turned my attention to other projects in other applications.
    Later, when I booted QT Pro and tried to listen to the Extracted Sound Track File, I hit play and the playhead moved, but there was no audible audio, or indication of audio in the equalizer display. It was as if the audio had disappeared. Opening +Movie Properties,+ the +Extracted Sound Track+ still appeared as MPEG layer 3/Mono and the track was still enabled.
    On a hunch, I opened and played the original Movie from which I'd extracted the sound track. After that, I hit play again on the Extracted Sound Track Window/Player and voila! -- the audio miraculously reappeared and was fully audible. I don't understand. Why is this happening? I did save the Extracted Sound Track file as a self-contained movie. It doesn't make sense.
    More to the point, _how does one extract a sound track and save/process it such that the extracted sound track remains intact with full playback capability, without first having to play the original movie from which it was extracted in order to make the Extracted Sound Track file playback._

    Thanks RT...
    The curious thing is, if I boot the computer and open the +Extracted Sound Track+ file in Quicktime, it's hit or miss. Sometimes the audio is there. Sometimes it's not. If I however, play ANY other Quicktime Movie on my computer and THEN open the +Extracted Sound Track+ File, the audio miraculously reappears. What can it be?
    I've got Streamclip. Haven't used it much but I'll try your approach and export the file back to a Quicktime Format.

  • Audio dropping from recorded stream during playback

    NOTE: I posted this same question on the Adobe Groups FMS
    Users page.
    I am using Stream.play() on the server side to set up a hub
    to switch between live streams and recorded streams. Basically, I
    have a live video stream that we want to switch in a recorded
    segment (flv) at the end of which we go back to the live stream.
    Both the live stream and the recorded stream are at the same data
    rate.
    I'm following the code samples from:
    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000386.html
    The problem I'm having is that the audio starts for the
    recorded segment but goes silent after the first 2-3 seconds of
    audio. This happens every time the clip is played. This clip plays
    fine when linked to directly, without being part of the hub system
    using Stream.play(). I have tried this with several recorded
    segments with the same result.
    Has anyone seen this happen before?

    Thanks for the suggestion Jody. Would this work in 3.0.3 as I
    am not on 3.5 yet? I tried adding this to the fms.ini for 3.0.3 and
    nothing changed. It may also be worth noting that I am having the
    issue even with only a single user connected.
    When the client sends a message to the server to play my
    "demo" the server calls the following lines of code:
    application.mainStream = Stream.get("foo");
    application.mainStream.play("shortDemo", 0, -1, false,
    application.myVODConn);
    application.mainStream.play("liveEncoderVideo", -1, -1,
    false);
    This should switch from the currently playing
    "liveEncoderVideo" stream to the "shortDemo" and then back.
    The myVODConn is getting set up right as I can see the demo
    but again the audio just drops out after 2-3 secs. I also tried to
    use the AdobeBand sample files and I get the same thing.

  • Does anyone know how to separate a movie track from an audio track on the new Mavericks Garage band. It used to be very easy on the iLife 11 version. If anyone could respond ASAP I'd be grateful. I need to make an audio file from a video.

    I urgently need to make some audio tracks from videos using the new 2013 GarageBand. In iLife11 Garageband, this was very easy. However, I cannot see how to do it in the new one. The alternative might be to revert to the iLife11 version, so does anyone know how to do this. It's extremely urgent since I need to produce these for a court custody hearing which will take place at 0800 GMT UK time on 31st October 2013. Please help.
    Thank you.

    When you drag a movie from the Media Browser to the Time lIne in GarageBand, you will see a pop-up "Extracting Audio".
    The Movie and the audio file will appear in separate tracks. You can copy the audio region from the sound track to a different track to keep it safe and then hide the Movie track.
    Léonie

  • There is no audio in video recording

    There is no audio in video recording

    Bengt,
    I would recommend reaching out to support directly for this. Either email them back at the support email you have from your previous case, or you can chat with a live agent. A possible fix is here, along with the link to the live agent Audio missing from recorded meeting
    Alternatively, you can reach out to Adobe support directly through one of these numbers Adobe Connect Support phone numbers

  • Audio  waveform image in timeline

    Other than in the preferences, is there a shortcut for turning off the audio waveform in the timeline?

    Create a button that you can place in the timeline.
    or Press Option-Command-W.
    or Choose Show Audio Waveforms from the Track Layout pop-up menu in the Timeline.

  • Show waveform while recording

    Is there any way to get STP to show the waveform as the audio is recorded (not just after recording).

    Hi Donald,
    Soundbooth will not display the audio waveform while recording. The level meters should be live during the recording or monitoring process, but you will not see a waveform until the recording has stopped.
    Durin

  • When I record an audio track, there is a waveform. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is there. How can I stop the waveform from disappearing?

    When I record an audio track using Logic Pro X, there is a visible waveform which appears as I record. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is still there. How can I stop the waveform from disappearing? And can I do something to view it after it has disappeared? Anyone know the anser?

    In Logic:
    Preferences/Audio Set Recording Delay to 0 <zero>
    This should always be set to zero unless a specific set of circumstances exist and you're audio drivers do not report position correctly.
    On occasion, usually when importing a Logic 9 project, Logic-X randomly changes this to a negative/positive number.  It's actually a bug in Logic, as it should always display the waveform.

  • I am using iMac OS 10.7.2 with Garageband'11 6.0.4. I can't record sound from  mixer Behringer X1622USB using USB out. when I connect the mixer to iMac via USB  appears USB Audio CODEC on Sound and preferences but no sound from mixer to iMac. Need help.

    I am using iMac OS 10.7.2 with Garageband'11 6.0.4. I can't record sound from  mixer Behringer X1622USB using USB out. when I connect the mixer to iMac via USB  appears USB Audio CODEC on Sound and Preferences but I can't get no sound from mixer to iMac only sound from iMac to mixer. I only can record sound using microphone line in. Please help.

    Eric,
    Thanks for your reply. Realtek audio works only in playback. There is a stereo mix in the mixer but the recording controls are not operable with no sliders in the mixer for any recording option. Slider controls appear to be grayed out. Can't figure out how to enable them. Downloaded newest drivers to no avail.
    The M Audio control panel has no apparent option for recording stereo mix. Adobe ignores the sound from the DVD or CD and shows flatline.
    I'm trying to record the sound from the DVD not rip the track.
    When I go to Audio Driver Setup and select Audition 3.0 windows sound, there is no input device installed.
    I'm thinking of going back to a decent internal Soundblaster card like I have on my 8 year old machine I am replacing.

  • Record sound from M-Audio Firewire Solo input with S/PDIF

    Hey there, I am using a m-audio firewire solo and connect it to my mac mini 2013 with firewire cable. If I try to record sound from my guitar, it is ok, however the sound from S/PDIF input cannot be recorded. I can see the sound signal from the mac input preference, however it just cannot be played or recorded. I have searched through the forum and found some people also have the same problem but just cannot solve it. Does anyone have some idea? Thanks.

    Have you selected the correct Input pair in a stereo Logic channel strip? Standard s/pdif is a stereo signal.
    Also, the M-Audio device may have to be set to slave mode as the incoming digital signal will have to become the master digital clock for the M-Audio unit.
    The M-Audio unit should probably be set to 48kHz, it's doesn't do 96hHz does it?

  • Recording audio from the web without recording sound from the internal microphone...

    Is there a way to record audio sound sources, for example a webcast in a browser, without without also recording sound thru the built in internal microphone on the MacPro laptop running Mountain Lion?

    You need something along the lines of Audio Hijack Pro or WireTap Studio.  The latter is currently broken in Lion and Mountain Lion for your purposes, so that leaves Audio Hijack Pro.  Neither is free, but both are worth their asking price (well, WireTap Studio will be once they deign to repair it).
    HTH.

  • Recording sound from computer?

    Ok so I have a file that is .vrf (Ventrilo sound) and Sb doesn't open it. But if i play the sound can Sb record it off the computer (via Stereo Mix)? I know Audacity will record sounds off my computer, but i was wondering if Sb would. and if so how?
    Thanks!

    >>What settings? In the toolbar settings or IE7's settings?<<
    It's in the "Freecorder" toolbar (mine shows near the top of IE) and is an icon located there for Freecorder's "Settings".  On my installation, it's the second icon from the right end of the toolbar and is located between the "bell" ("Record and Auto-Tag MP3's ...") and the right-facing 'arrow (the "Play" icon). The "Settings icon" looks like two opposite-facing maracas.
    Click this Settings icon and a window will pop up.  In its upper-left corner you'll see three places that allow you to place/click a "check mark".  I've put a check in the top line which says "Record From Freecorder Audio Driver", and it has worked well for me.  (Note that in this "Settings window" you can also set the "Recording Destination", the "Output Format", and time at which you want the program to "Prompt for a filename".)
    What I do is: 1) click the red "Record" icon in Freecorder's toolbar, 2) start playing the music source so I can hear it out of the speakers, and 3) when it's done playing, save the file.
    Hope this helps a little more.

  • Recording sound from the PC

    I am currently running a mixer into the front audio input jack on my PC, and have all external stuff (mic, mini disk, etc) coming through that.
    Am I able to set up audition so that it can also record sound from the PC. For example, if I want to grab audio from a you tube video, or have an online voice chat or something enabled, can I open audition and record it? I have tried, but not been successful. My only idea is having to run the audio out of the PC, into a channel in the mixer, and then back into the PC with everything else.
    Any help?

    Evergyro wrote:
    Where is the link?
    This so-called 'forum' has absolutely no use for its FAQs any more. Fortunately, AudioMasters has saved them all, and you can find that particular one here.

  • HP Mini 110-1160SA problem recording sound from sound card

    I am trying to record sound from the sound card itself rather than an external or internal microphone, using a free software called Sonarca Sound Recorder. For example, I play radio from the internet using the BBC Iplayer. I have Windows 7 Starter. When I use the Windows Control Panel > Hardware and Sound > Manage Audio Devices, I get a window called Sound. I press the Recording tab, and get a choice of Internal Microphone, External Microphone, and Stereo Mix. According to my sound recorder software's documentation, I need to select that Stereo Mix, because it means "record whatever the sound card is playing". However, the Stereo Mix recording device, despite having a red tick mark next to it is "Currently Unavailable". How do I make it available?

    to be honest, i am not sure about your problems, normally, you need to set stereo mix as default device, then using recording devices to record sound on windows 7. Since you cannot make it, why not insall a virtual sound device, it works like a real one, install this streaming music recorder on your system, start recording. Just test it out by yourself.

Maybe you are looking for

  • Powerbook G4 slightly bent in the middle

    OK, so I have my laptop on a little bag attached to the handle of my carryon at the airport. The carryon falls over, and it looks lilke the metal handle put a little bind in the middle of my G4. It's almost imperceptible, except when you close the la

  • Problems with gotoAndStop() in Firefox

    Hello Friends, I am working in Flash cs3. I am loading an external swf ie (Flash Mx 2004 swf) and it has gotoAndStop(110). Its working fine in IE. But when i am trying to run the same html in Firefox, the position of the keyframes are randomly changi

  • SelectOneChoice and selectItem foreach row  - Not selecting current value

    Hi - I am having a problem whereby the list that is rendered in the UI is not selecting my current ID...It is just showing the "blank" selection, which is another problem - it must be mandatory. The UI shows the list (from my iterator) but nothing is

  • Linking to files stored on Verizon

    The are many message boards that allow you include pictures in your posts by inserting the URL to where the file is located. I have searched all over Verizon's websites and can't find out how to do it. At Comcast, there was a utility to upload and st

  • Spreadsheet alike input form

    How can i create a spreadsheet alike input form in java server page??? need to create 3 fixed column and multiple rows.... how can i do this... HELP!!!!!!!!!! NewBIE in JSP CRYING... :~( .....