Audio recording (wav) isn't streamable?

Hi dear all,
With WTK22, I am doing audio recording to wav format at client and send it to server by stream. I found out that client will not send any data out until it finish recording by recordControl.commit.
Am I doing something wrong or that's the fact?
I read from Sun (See below) wav audio format is not streamable since some fields in the header can only be filled when finish recording.
If I want to have the realtime (nearly) audio, what should I do?
----------------Here is from Sun.com---
Non-streamable format
An example of a non-streamable format would be a WAVE audio format or a
Quicktime video format. These files have a header. Some of the fields in the header cannot be computed until the recording is complete. After recording is complete, a seek back into the recording is typically required before the header fields can be updated. This means that local storage is required for buffering the recorded data. This also means that the recorded data is available only after the recording is complete.
Here is the code.
try {
     // Create a DataSource that captures live audio.
     p = Manager.createPlayer("capture://audio");
     p.realize();
    // Get the RecordControl, set the record location, and
    // start the Player and record for 5 seconds.
    rc = (RecordControl)p.getControl("RecordControl");
     rc.setRecordStream(outputStream);
    debugInfo("Set record to out stream");
    rc.startRecord();
     p.start();
     try {
          Thread.currentThread().sleep(5000);
     } catch (InterruptedException ie) {
} catch (IOException ioe) {
     ioe.printStackTrace();
} catch (MediaException me) {
     me.printStackTrace();
//stopRecorder();Any suggestions, hint will be appreciated.

unfortunly
I decomplied the file RecordCtrl (the implementation of the RecordControl control ) to check this case too
i found that the class buffers all the data before it begins to send any single byte.
the only solution i find are :
1) to do a series of startRecord() / commit() calls on a small time base
2) to find some way to override the method
      public void record(byte buf[], int offset, int length)
to have only this line
{stream.write(buff, offset, length);}
instead of all the lines in it
beside making your own OutputStream class that accepts the coming data....
well
the problem is
how to override that method !!!!!!!!!!!!!!!!!!
i am in this problem nowadays
can any body help me regarding this ?!!!
thank you in advance

Similar Messages

  • No Audio Pattern Show (wav) in audio recording?????

    I don't know what's going on over here " I record something while back" and now when I launch the file I can't see the "actually recorded wav" file but only here the vocal. it's like there is an error in the file and logic is not showing the wav file. I tried rebooting but nothing works what should i do??

    Hey, it's not the vertical zoom because this happens all the time. It is very weird because sometimes I can see the "wav" when the song loads and then sometimes I can't. I really don't want to re-install logic so I hope there is another sanareo (lol don't know how to spell it)
    Anyway, what do you guy suggest
    repeat topic: audio file does not show "wav" just blank recording appears but sound plays

  • Is there a way to import an audio file (WAV) with markers?

    I used a TASCAM DR-100-MK2 audio recorder to record conference presentations. The TASCAM has a function button which can be used to create markers in the audio file. I used this "marker" button to create a marker every time the presenter changed the PowerPoint/Keynote slides. I was hoping I could import the WAV file into FCPX and see the markers, and then drop each slide at the markers (after converting the slides into JPG files). However, I am not able to see the markers on the audio file. Is this something I can do in FCPX? If so, what do I need to do in order to see the markers?
    A quick response is greatly apprecaited because I´m on a deadline. Thanks.

    Tom,
    Thanks for quick response. When I play the WAV file in QT player, I don´t see anything but the "start/stop" button, the "fast forward", "fast backward" and volume control. Shoule I see anything else?

  • Is Logic Pro the Best Audio Recording Software for Mac?

    Couple questions. I do a lot of audio production and work currently. I use a gateway with Cubase, and its not bad, but I feel like I need something mroe high end.
    I'm looking at the 17 inch Imac. Does anyone record using this computer? How's it sound? Is there any way to put in a new soundcard or something if i don't like the current one?
    Secondly, is logic pro the most advanced and best audio recording software for the mac? Are there others as well?
    I know about Pro Tools, but it seems like there isn't anything high end enough that is TOO high end.
    Does the Pro version have superior mixing capabilties. I am primarily going to be micing a guitar amp and having a mixer run into a firewire port, and also using a preamp for my guitar direct into the computers USB.
    Lastly, how are the mixing features on Logic Pro vs. Logic Express? I do a lot of post production mixing as well, and use VST plugins. Speaking of that, will it accomodate using a drum program like BFD through VST or Midi like Cubase will?
    Thanks for your time guys.

    Couple questions. I do a lot of audio production and
    work currently. I use a gateway with Cubase, and its
    not bad, but I feel like I need something mroe high
    end.
    Yes, you do indeed need sth more high end.
    I'm looking at the 17 inch Imac. Does anyone record
    using this computer? How's it sound? Is there any way
    to put in a new soundcard or something if i don't
    like the current one?
    It's not an iMac, but a faithful PowerBook G4 that I am using. Apples Core Audio is awesome. Your sound, however, will depend on your interface.
    Secondly, is logic pro the most advanced and best
    audio recording software for the mac? Are there
    others as well?
    That's why we are here, and that's why you ended up in this forum as well
    To me personally, Logic sounds warmer and bigger than any ProTools system I've ever heard. From what yopu described as the work you need to do, there is no comparable application. Logic also offers you many more features above and beyond what you currently need to do.
    I know about Pro Tools, but it seems like there isn't
    anything high end enough that is TOO high end.
    Everybody is using PT, and you should maybe get a Light Edition version of it. However, as stated above, Logic offers by far more possibilities.
    Does the Pro version have superior mixing
    capabilties. I am primarily going to be micing a
    guitar amp and having a mixer run into a firewire
    port, and also using a preamp for my guitar direct
    into the computers USB.
    For your purpose, Logic does have superior mixing capabilities. In my humble opinion, only the popularity of PT made it become the choice of studios and engineers, but things are turning...
    Lastly, how are the mixing features on Logic Pro vs.
    Logic Express? I do a lot of post production mixing
    as well, and use VST plugins. Speaking of that, will
    it accomodate using a drum program like BFD through
    VST or Midi like Cubase will?
    If you do post production mixing, forget about Logic Express altogether and go for Logic Pro. LP will accomodate tons of plug-ins, and it comes with a bunch of great one's as well!
    The format for the plug-ins is called A(udio) U(nit) and works flawlessly. Many VST plug-ins are also available in AU format and the development of those is moving fast forward.
    In other words, yes, you will be able to use BFD in Logic by means of the AU format.
    Thanks for your time guys.
    You're welcome.

  • Other ways of adding audio recording to presentations Adobe Presenter 8?

    Hi there,
    I just realised that I asked a question in the wrong language! I have a quick question re. audio recording in AP8. Is there anyway to add audio to a presnetation other than with a traditional recording device? i.e. can audio be recorded via PC or telepohne and then be added to the presentation? if so, how?
    Many thanks!
    KH

    You can use the Import Audio tool to import any MP3 or WAV audio file. Presenter doesn't care where the audio file comes from, so as long as you can record the audio as one of those two file types, or convert it to one of those file types, you should be able to bring it into Presenter.
    To simplify the process, you may want to break up the audio files so there is one for each slide, but this can be done in the audio editor if needed.

  • How to record wave/m

    I want to record Wave/MP3 withouth using stereomix('whatyouhear')
    but in my mixer record part there is only otions for:
    -Stereomix
    -Cd audio
    -TAD-In
    -Auxiliary
    -Microphone
    -Line-In
    Can i get Wave/MP3 added to it somehow?
    In Playback control it does have a Wave/MP3 option...
    i have a SB Li've! 5. with drivers from its CD and patched from site

    No, you can't.

  • I am getting audio recording but no visible waveform display on my tracks. How can I view the waveform?

    I am getting audio recording, but the wave form does not display on my tracks; there is just a black line. How do I get the waveform to show on the track?

    The Art Of Sound wrote:
    Watching Breaking Bad from the beginning.... (I never got a chance when it was originally broadcast)  in the hope it will help me come up with something appropriate for a 'dark" movie soundtrack Im working on.....
    I have the CD for you... it's called...  "Watch the Skies"   Sixteen pieces of music written for science fiction movies or series.
    Alan Silvestri - Contact, Predator
    Jerry Goldsmith - Alien
    Danny Elfman
    Michael Koenig
    Mark Snow
    Richard Band
    etc...etc...
    Silvestri (my fav) can write some seriously dark music.

  • Logic 8 won't play back audio recorded at 48 kHz

    So I was recording a small project in Logic 8 on Snow Leopard (10.6.8) the other day when I noticed that audio recorded at 48 kHz wasn't playing back at all. The wave form appeared in the audio region after recording, but the meters on OUT 1-2 weren't lighting up at all. When I switched the project mode to 44.1 kHz, the audio played back fine (except it sounded pitched down and slow). I was in a hurry so I just recorded the whole project at 44.1 kHz instead, even though it should have been 48 kHz.
    Any ideas on what could be causing this?

    A lot of people have reported this, and it happens to me pretty frequently. Gotta be a known bug, but of course since Apple is always mum about this stuff with absolutely no communication to its customers, we won't know until the next version of Logic is released.

  • Captivate 5.5 Software simulation video crashes when adding audio recording

    I run Windows 7 and Adobe captivate crashes after trying to start a audio recording in software simulation. My simulation is ready and the moment, I click the "record audio" button, the application freezes and I have to go to end the application via Task Manager.
    Solution approaches:
    I have started Captivate as administrator and that didn't help.
    I have then tried to look up my preferences but didn't find any files which i could identify as preferences.
    I have already tried the solution in the Note below (http://forums.adobe.com/thread/759455)
    Help please.
    Thanks,
    A

    I am having similar issues, but with the internal speach generator. I have both simulation and demonstration videos. I was able to enter text and convert to Paul's voice without issue, but the minute I tried to add closed captions Captivate totally locked up. And now when I try to do any sort of audio edit, no matter which method of access to the audio (using Audio - Audio Management or Audio - Speech Management or the Add/Edit Audio buttons in the Properties window or using the Closed Caption button in the Slide Notes tab or double click the audio wave file in the Timeline tab) Captivate totally locks up. I was originally able to create 1 file with closed captions but now it also locks up when I try to edit and no other file will let me add CC or use the Audio edit features.
    Captivate 5.5, Windows 7; run captivate as admin or not - no difference. Run captivate on my primary or secondary monitor - no difference; run captivate with or without other applications open - no difference.
    When I force close using Task Manager I did get a CpDump file that was created. Not sure what to do with that...I submitted a bug but have heard nothing back.
    I did follow the steps in the earlier referenced link about deleting the preferences. I also did not find a specific file/folder labeled preferences but my IT group said it was OK to delete the entire final folder in the referenced chain (Captivate 5). Once I did that, I had access to my Closed Captions again and could edit the audio.

  • Audio recording: MacBook VS MacBook Pro

    So here I am.
    Been reading a lot about the introduction of MacBook Pro/MacBook and I'm now really confused about which I should choose. I'm seeking for a notebook for live audio recording and the price gap between the MacBook and the MacBook Pro mystifies the hole thing.
    MacBook is really tempting me since it's not that far by terms of caracteristics from the Pro. I don't really need a unique GPU since I don't really like playing games on computers. But I do use Photoshop and some graphic intensive applications and I would need room for eventual Photo/Video editing. Then, I was thinking of getting a MacBook 2 gHz (white) with 2 GB of RAM to allow some to the integrated chipset. Question 1 answered.
    I've read a lot about the GLOSSY screen and I must say, I prefer the MATTE screen since it doesn't over-saturate and it isn't reflective. Though, I'm giving myself some time to hear feedback from people doing Photoshop work and having compared the results from what's on screen and what's actually printed (with a good quality printer). I'd also like to have feedback from people having worked with the MacBook outside or by a window with sunshine.
    The whole issue is that the 2 gHz , 15 inch screen, 1 GB of RAM (1 dimm) MacBook Pro pro has a 227$ price difference with the MacBook 2 gHz (white) with 2 GB of RAM (CANADIAN PRICES). My budget is tight, so I want to be sure if paying that difference is worth it or I could be fully satisfied with a MacBook.
    Thanks for the attention!

    As long as graphic performance is not an issue (which shouldn't be for audio recording), you will be absolutely fine with the MacBook. There is no difference in spec between the 2GHz MB and the 2GHz MB Pro except for the graphics card (and hard drive speed). I use Logic Pro and Pro Tools LE extensively and have a MacBook on order. The only thing you may need is an external hard drive if you plan on running lots of tracks. You should be very happy with the MacBook unless you absolutely need the extra screen real estate or prefer the matte finish. I should be getting mine today and will report back on how I like the screen. Hope that helps!

  • Exception in Audio Recording in AMR encoding in J2ME?

    Hi all,
    I want to Record Audio in AMR encoding....
    the code sniplet is as follows..
    For createPlayer("capture://audio?encoding=audio/raw");
    java.lang.IllegalParameterException is coming in Nokia device and
    For createPlayer("capture://audio?encoding=audio/amr"); and i tried
    createPlayer("capture://audio?encoding=amr")
    java.lang.NullPointerException is coming in Nokia device.
    so anything to change in createPlayer() while Playback the recorded audio?
    For "audio/wav and audio/au "(for which it is working fine in Nokia device),
    i wrote, Player p2 = Manager.createPlayer(recordedInputStream,"audio/x-wav");
    so please tell me the solution?
    Thanks and Regards..

    Hi all,
    Good Morning!
    Actually i was recording in AMR encoding on Nokia 3230, but it doesnt support AMR encoding..so i had done it on Nokia 6680.
    I recorded audio and played it back in AMR encoding, and in audio/raw encoding, i recorded audio but cant played it back on Nokia6680 device.
    first i m displaying the audio encoding formats that the specific device supports, and then which audio encoding, the user selects,
    i m recording and played it back in that audio encoding .
    for eg: for audio/amr, i m recording and played it back in audio/amr encoding.
    for audio/wav, i m recording and played it back in audio/wav encoding. like that for others..
    like that for audio/raw encoding, i m recording the voice but while playback it, audio/raw encoding will be selected. but it is not working in that.
    so which encoding to take to playback audio in audio/raw encoding?
    createPlayer() while playing the recorded audio...
    player = Manager.createPlayer(recordedInputStream,encoding);
    for Nokia 3230, it shows that.. supports.audio.encoding=audio/wav, audio/au, audio/amr, audio/raw.
    and if Nokia 3230 doesnt support amr encoding then why it shows that supports.audio.encoding=audio/amr for Nokia3230 device?
    hoping to hear from u soon....
    Thanks and Regards...

  • Audio Recording Limit

    Does exist any limit to audio recording in flash? I created a simple wave recording from the mic but it stop at 30 minutes or less... I don´t have any problems of computer memory I think. Does it may be from the code? or is any limitation of size (the wave can reach Gb´s...)? I have searched into the docs but have not find any related problem

    There´s my source (just the record):
                import flash.events.MouseEvent;
                import flash.events.ProgressEvent;
                import flash.events.SampleDataEvent;
                import flash.media.Microphone;
                import flash.system.Capabilities;
                import mx.events.FlexEvent;
                [Bindable]
                public var out:String = new String();
                public var process:NativeProcess;
                public static const FILE_NAME:String = "recording.wav";
                public var soundBytes:ByteArray = new ByteArray();
                [Bindable]
                public var mic:Microphone;
                public var nativeProcessStartupInfo:NativeProcessStartupInfo;
                public var f:FileStream = new FileStream();
                public var file:File;
                public function record_clickHandler(event:MouseEvent):void
                    record.visible=false;
                    stop.visible=true;
                    initclock();
                    event.currentTarget.enabled = false;
                    stop.enabled = !event.currentTarget.enabled;
                    mic = Microphone.getMicrophone();
                    mic.setSilenceLevel(0, 4000);
                    mic.gain = 30;
                    mic.rate = 44;
                    soundBytes.length = 0;
                    mic.addEventListener(SampleDataEvent.SAMPLE_DATA, sampleHandler);
                public function sampleHandler(event:SampleDataEvent):void
                    progressbar1_progressHandler();
                    while(event.data.bytesAvailable){
                        soundBytes.writeFloat(event.data.readFloat());
                public function stop_clickHandler(event:MouseEvent):void
                    event.currentTarget.enabled = false;
                    record.enabled = !event.currentTarget.enabled;
                    out = new String();
                    mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, sampleHandler);
                    soundBytes.position = 0;
                    file = File.desktopDirectory.resolvePath(FILE_NAME);
                    f.open( file, FileMode.WRITE);
                    f.writeBytes(WaveEncoder.encode(soundBytes, 1));
                    f.close();
    and the encoder:
    package
        import flash.events.Event;
        import flash.utils.ByteArray;
        import flash.utils.Endian;
        public class WaveEncoder
            static public function encode( samples:ByteArray, channels:int=2, bits:int=16, rate:int=44100 ):ByteArray
                var data:ByteArray = WaveEncoder.create( samples );
                var bytes: ByteArray = new ByteArray();
                bytes.endian = Endian.LITTLE_ENDIAN;
                bytes.writeUTFBytes( 'RIFF' );
                bytes.writeInt( uint( data.length + 44 ) );
                bytes.writeUTFBytes( 'WAVE' );
                bytes.writeUTFBytes( 'fmt ' );
                bytes.writeInt( uint( 16 ) );
                bytes.writeShort( uint( 1 ) );
                bytes.writeShort( channels );
                bytes.writeInt( rate );
                bytes.writeInt( uint( rate * channels * ( bits / 8 ) ) );
                bytes.writeShort( uint( channels * ( bits / 8 ) ) );
                bytes.writeShort( bits );
                bytes.writeUTFBytes( 'data' );
                bytes.writeInt( data.length );
                bytes.writeBytes( data );
                bytes.position = 0;
                return bytes;
            static private function create( bytes:ByteArray ):ByteArray
                var buffer:ByteArray = new ByteArray();
                buffer.endian = Endian.LITTLE_ENDIAN;
                bytes.position = 0;
                while( bytes.bytesAvailable )
                    buffer.writeShort( bytes.readFloat() * 0x7fff );
                return buffer;

  • Audio recording (registrat​ore suoni)

    he , I have a notebook pavilon 15 wth windows 8.1. When I make an audio recording, with hp software (registratore suoni), the file is automatically saved but I don't know where.

    Hi,
    Thank you for those screen shots. This helps.
    Looking into this for you, I was able to find this document: Sound Recorder app for Windows: FAQ
    The act of it save is done right in that App, from everything I can find on this. The right hand side where you have all of those files, these are "saved". I can not find anything on a location and check anywhere that made sense. The FAQ, does provide how to email them.
    This may be a question for Microsoft to answer.
    Now, if you wanted to be able to save them to the HD, I did find another way to do this. In your second screenshot, you have two icons. Use the second, it will launch to your desktop. This one will allow you to save the files in the same manner as the screenshot I provided. The only thing this version doesn't have is the Trim feature.
    Again, if this isn't what you'd want, I recommend contacting Microsoft for this.
    I worked on behalf of HP.

  • Making a simple audio recording

    I know this is a stupid question, but I'm not sure how to record a sound bite on my imac. Is there a simple recording application included in the OS? (OS10.3.9). Using something like Garageband would seem like overkill, plus I don't know how to use GB, having never really had a need for it.
    What I need to do is interview someone for a school assignment, and I have to email it to the instructor.
    Thanks for any help.

    I figured this one out for myself. I googled "audio recording on a mac" and found a free program called Audacity. You can use it to record audio and then save as a wav or whatever file.

  • Inspiron 3537 no audio recording

    I have a Inspiron 3537-4864 laptop. The in-built microphone isn't working at all.
    The device is shown green in the audio settings, its default device also. I disabled and uninstalled both mic and webcam devices and drivers. Its not muted either. I tried with skype, windows 8.1 audio recording and dell webcam central. Not recording anything. The drivers are up-to-date (Audio_Driver_5F22P_WN_6.0.1.7023_A00).
    Thanks the help in advance.

    Hello. There is not an easy or reliable way to test the mic. You can test the audio driver by switching from the Realtek audio driver to the Windows native audio driver.
    1. Open the Device Manager (Control Panel>Device Manager).
    2. Expand the "Sound, video & game controllers" and right click on "Realtek High Definition Audio".
    3. Select to "Update Driver Software".
    4. Click on "Browse my computer for driver software".
    5. Click "Let me pick from a list of drivers on my computer".
    6. Put a check in the box "Show compatible hardware" if not already checked.
    7. In the list of devices, click "High Definition Audio Device" (the native driver).
    8. Click "Next".
    9. On the Update Driver Warning box, click "Yes" (install the driver).
    10. Restart the laptop if prompted. If not prompted, then no need to restart.
    [To get back to the Realtek driver,  do it again but reverse the names in steps 2 and 7.]
    This tests the driver because if you have the exact same symptoms with both drivers, there is a very small probability that both of them are faulty in the same way.
    Make sure that Microphone is selected as the default recording device. If two of them, one is the external jack mic which usually cannot work with the native driver.
    Right click on the internal mic and select Properties. Select the Advanced tab. Uncheck the Exclusive Mode boxes.
    Try making a test recording using Windows Sound Recorder (not a voip application). If no luck then there is a good chance there is hardware failure.Use a strong light to examine the mic to try and see if it has been displaced or something is covering it. Sometimes it helps to open the bezel and reseat the webcam's connection.
    The gold standard for determining if it is a hardware problem is to perform a system recovery (reset the laptop back to the factory configuration). When doing that does not solve a problem that did not exist when the laptop was new then it has had a hardware failure since then.

Maybe you are looking for

  • SOAP  - XI - SOAP Error

    Hi, I am working on a scenario where a SOAP Client ( XMLSPY) sends a request to XI and XI forwards it to a web service and returns the result back to Soap Client. I am using SOAP Adapter at outbound and inbound.  I have done the following steps: 1. i

  • HT2335 My iphone 4S previously saved photos in the jpg format.  Suddenly it changed to the bmp format.  How do I change it back to jpg?

    My iphone 4S previously saved photos in the jpg format.  Suddenly it changed to the bmp format.  How do I change it back to jpg?

  • Two Itunes and one account?

    Hi, I have two Itunes running off one account.  One on my iMAC and one on my win7 box.  I noticed that with the season pass it doesn't download to both or a season is split between PC and iMAC.  For example (assumes episodes are available): IMAC and

  • BLOB Download Format Mask

    Hi there I've got this in my report: DOWNLOAD:MYTABLE:MT_FILE:MT_ID:::MT_FILENAME:::attachment:Download I was wondering - is it possible to change 'Download' to the value of MT_FILENAME? I've tried #MT_FILENAME# and MT_FILENAME with no luck. It would

  • No input with Blackmagic Decklink SDI 9.7.7 and Adobe Premiere

    Hi there My BM Decklink is properly installed: I can grab Video with the BM Software. In Adobe Premiere there is no signal. The TC is ok and running. All Settings seems to be ok. I'm running a Windows7/64 Bit Thank for your help.