How to save the audio bytes in a file

I am capturing the audio from microphone.I write the audio data as bytes to other clients.How can i save the bytes in a wav file and it can be played in future?Please help.I want to write the audio bytes in a wav file

get sample source code from
http://javasolution.blogspot.com/2007/04/record-and-save-audio-using-java.html

Similar Messages

  • How to extract the audio of a zip file? if it helps I'm trying to add this album zip to my library

    how to extract the audio of a zip file? if it helps I'm trying to add this album zip to my library

    Let's say you have a zipped audio collection (audio.zip) containing mp3 files. And you are at a Terminal prompt.
    List the files in the zip archive
    unzip -l audio.zip (that is ell)
    Extract all mp3 audio files into a new home directory folder called mymusic
    unzip -d ~/mymusic audio.zip \*.mp3
    Variations of the above will depend the zip contents, and internal structure. If the zipped audio collection was gzipped, or someone used rar on it, then the extraction process will be different.

  • How to save the RichTextBox Content in Text file

    hI ,
    I NEED TO SAVE THE RichTextBox Content in text file ? 

    If this IS a LabVIEW question, here's an example of how to load a rich text file (to help if you don't know how to get a rich text in LabVIEW).
    If you have a Rich Text Box, you can use the invoke method "SaveFile" to match the function you linked to.

  • How to save the time to a .txt file and retrive it back as time?

    I have to save the time [hour:minute:second] and the date [date:month:year] to a .txt file. I am using the Calendar API to set the time and date as below
    FileOutputStream fileStream = new FileOutputStream ("what.txt");
    PrintWriter pw=new PrintWriter(fileStream, true);
    Calendar curDate = Calendar.getInstance();
    System.out.print(curDate.get(Calendar.DATE)+":");
    System.out.print(months[curDate.get(Calendar.MONTH)]+":");
    System.out.print(curDate.get(Calendar.YEAR));
    pw.println(curDate);
    I'll have to retrive these data back to use it to set timer
    timer = new Timer();
    timer.schedule(new RemindTask(), time);
    I try to retrive the data and use the Calendar API to that data by using the below program.
    I get the error as :
    C:\t\Retrivedate.java:41: int cannot be dereferenced
    System.out.print(t.get(Calendar.DATE)+":");
    How can I solve this so that I can use Calendar API on my retrived data?
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    class Test {
    public static void main(String args[]) {
    try {
    File inputFile = new File("what.txt");
    FileReader in = new FileReader("what.txt");
    int t;
    char[] tmp = new char[100];
    int cnt = in.read(tmp);
    String tm="";
    for (int j=0;j<cnt;j++)
    { tm+=tmp[j];
    try {
    t=Integer.parseInt(tm,10);
    catch (NumberFormatException exception) {}
    System.out.println("jika "+tm);
    Calendar curDate = Calendar.getInstance();
    String months[]={
    "Jan","Feb","Mar","Apr",
    "May","June","July","Aug",
    "Sept","Oct","Nov","Dec"};
    Date time1 = curDate.getTime();
    System.out.print(" \n"+time1.getHours());
    System.out.print(":"+time1.getMinutes());
    System.out.println(":"+time1.getSeconds());
    System.out.print(t.get(Calendar.DATE)+":");
    System.out.print(months[t.get(Calendar.MONTH)]+":");
    System.out.print(t.get(Calendar.YEAR));
    in.close(); }
    catch (IOException ex) {
    System.out.println("IOException:"+ex.toString()); }

    These lines do not make sense:
    System.out.print(t.get(Calendar.DATE)+":");
    System.out.print(months[t.get(Calendar.MONTH)]+":");
    System.out.print(t.get(Calendar.YEAR));
    1. t is an integer, it does not have any methods.
    2. It's a bad idea to use char[] to retrive the date. You should use readLine() method to retrieve the whole date string, say "10/23/2001" (certainly you can have hours, minutes, seconds, etc.). Then you need to use SimpleDateFormat class to parse this string. SimpleDateFormat gives you everything to parse a date string in any format you want.
    PC

  • How to save the visual settings   in css file ?

    hi all,
    I have designed a chart using java and ilog API, and i am applying the visual setting from .css file. But i have some option in GUI to change the visual settings. For ex: background color,leged text syle etc. I should provide one button to save the existing visual settings of the graph in .css. ( It may replace or edit the existing .css file. Please help me out regarding this.
    thanks in advance
    Mohanraj.K

    We can use the css file to apply the styles to chart... We have some readymade API it does that. It not only for HMTL. So when we run our application first time it will read the .css file and apply the properties. For example The background color in .css file is green. When we run the application first time it will apply green color to the chart background. Then i have some API it changes the chart background as user wants. for ex : red. When i close the application the i have to replace the .css background value as red from green. And we have to save the changed .css. My Q is very much unambiguous..
    please help me out
    Mohanraj.K

  • How to save an audio book to the cloud

    ?how to save an audio book to the cloud?
    how to save an audio book to the cloud

    The simple answer is if you want to copy an audiobook to the cloud, simply put it in Dropbox or some other online storage service. But what exactly do you want to do with it? Do you just want to store it there or listen to it?

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • How to normalize the audio channel of a video file?

    Hi there
    I have 100 quicktime movies.
    All I want to do is to normalise the audio in them.
    I understood that in the Volume correction I need to select - Equalize Volume Levels.
    Is that it?
    You can watch the movies without the sound boost in here
    Also, How can I save the audio File into the quicktime without rendering the video again.
    I don't want the video to be encoded again because the quality is really bad for some reason.
    Even If I choose Animation codec which suppose to be good.
    Isn't there a way of saving the new audio in the movie without encoding it all again?
    Thanks
    Guy

    hello,
    DDVideo QuickTime video converter gain can help you.it only copys and normalises the audio for your mov video without encoding again.
    Operation Steps:
    1.Run the programe.
    2.Add you MOV video,
    3.Select MOV format in ProfileSettings,
    4.There is a "Video Codec" in Video parameter,Please select "  copy  "
    5,Please tick "VolumeGain" box and adjust output target video volume From 75DB to 105DB
    6.Select output files directory,
    7.click "convert " button to convert video.
    The programe also can convert your video to other video format.you need to change Video codec to realize encoding again.
    url:http://daydayvideo.com/quicktime-video-converter.htm
    Hope it helps you.

  • How to save extracted audio?

    I'm editing my wedding video and I want to extract the audio of the clips I have so I can play them over music, rather than the actual audio. However, I currently only have these clips in this project, this is the only place they exist for me, so I really don't want to get rid of the sound forever, obviously (if the only record of the vows is destroyed, does it still apply? Only joking!)
    Is there a way to save the extracted audio as a separate sound file? Or can I export copies of the clips (not the whole project) to a different project? I haven't worked as much on HD as I did with the previous iMovie, so I'm not sure how that would work. Thanks for any help!
    Shannon

    "Extracting" the audio (vows!) doesn't really extract it. It copies the original audio, and puts that copy in the audio track, just below the video, and then just turns off the audio within the video clip.
    So the original audio is still embedded within the video (..no escaping those vows!..) but is just temporarily silenced. But it can have its volume turned up again, just as it was before.
    If you want to just "..play them over music.." you could simply leave the audio where it is, within the video, and add music to one of the audio tracks below.
    But if you mean that you want to play that bit of audio elsewhere within the movie, with added music - e.g; as a reprise at the end - you could 'Extract' the audio (..but that doesn't destroy the original audio; just quietens it ..though you can later bring it back up to its original loudness..) and then Copy that extracted audio clip, and Paste it back into an audio track anywhere else that you want in the project!
    [..To Export the separated (extracted) audio out of iMovie and into some external file, you can select the video clip locked to it, above it, choose 'Share' and click the 'Selected clips only' check-box, and save the audio as whatever kind of audio you want, from the drop-down selection which appears. Oddly, you can't just select and share just the audio clip; you need to select the video clip associated with it ..an oversight on the programmer's part, I think..]
    So, the original audio's never lost - sorry: ..a vow is a vow! - but having "extracted" (..i.e: copied..) the audio, you can then Copy and Paste that 'extracted' audio as often as you want!

  • How can I extract only the audio as an aiff file?

    Using a Sony DSC-N2 Cybershot Camera I recorded video that was saved as “MOV01606.MPG”. The video plays back with sound in Quicktime Pro and iTunes but how can I extract only the audio as an aiff file?

    Use MPEG Streamclip (free) to convert your .mpg files to QuickTime formats.
    QuickTime can't extract audio from muxed file formats.

  • Why oracle.exe is taking 8G virtual; bytes,  memroy target can not go beyond 5G. How to minimized the virtual byte in perfmon

    Dear Experts,
    Please help me in checking why virtual bytes in perfmon is taking more than memory we allocated.
    OS
    Windows Server 2003 R2 Enterprise x64 Edition Service Pack 2 (build 3790)
    ORACLE
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 64-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    Total RAM on box is 8G
    Page File
    Windows virtual memory equal on C,D,E,F drives is set to  12273M and allocated now is 11262M
    LPENABLED is not set
    SQL> show parameter pga_
    pga_aggregate_target   0
    SQL> show sga
    Total System Global Area 5344731136 bytes
    Fixed Size                  2114736 bytes
    Variable Size            4630514512 bytes
    Database Buffers          671088640 bytes
    Redo Buffers               41013248 bytes
    SQL> show parameter memory
    hi_shared_memory_address  0      
    memory_max_target    5G                
    memory_target      5G                  
    shared_memory_address  0             
    SQL> show parameter sga
    lock_sga   FALSE                         
    pre_page_sga     FALSE                   
    sga_max_size   5G                     
    sga_target      0
    Question :
    Why oracle.exe is taking 8G virtual; bytes,  memroy target can not go beyond 5G. How to minimized the virtual byte in perfmon
    Thanks in advance your time and help.

    John, Thanks for the reply.
    Please find the output of query
    SQL> select pool,sum(bytes) from v$sgastat group by pool;
    POOL         SUM(BYTES)
                  915543216
    java pool      67108864
    streams pool  268503944
    shared pool  2147494008
    large pool     67108864
    SQL>
    SQL> select * from v$pgastat;
    NAME                                                                  VALUE UNIT
    aggregate PGA target parameter                                    671088640 bytes
    aggregate PGA auto target                                         147564544 bytes
    global memory bound                                               104857600 bytes
    total PGA inuse                                                   533962752 bytes
    total PGA allocated                                               810819584 bytes
    maximum PGA allocated                                            1244466176 bytes
    total freeable PGA memory                                          90243072 bytes
    process count                                                           450
    max processes count                                                     588
    PGA memory freed back to OS                                      1.9883E+10 bytes
    total PGA used for auto workareas                                  28210176 bytes
    maximum PGA used for auto workareas                                39973888 bytes
    total PGA used for manual workareas                                       0 bytes
    maximum PGA used for manual workareas                                531456 bytes
    over allocation count                                                     7
    bytes processed                                                  2.6307E+10 bytes
    extra bytes read/written                                                  0 bytes
    cache hit percentage                                                    100 percent
    recompute count (total)                                               72720
    19 rows selected.
    SQL>
    SQL>  show parameter _target
    NAME                                 TYPE                             VALUE
    archive_lag_target                   integer                          0
    db_flashback_retention_target        integer                          1440
    fast_start_io_target                 integer                          0
    fast_start_mttr_target               integer                          0
    memory_max_target                    big integer                      5G
    memory_target                        big integer                      5G
    pga_aggregate_target                 big integer                      0
    sga_target                           big integer                      0
    SQL> sho parameter sga_max
    NAME                                 TYPE                             VALUE
    sga_max_size                         big integer                      5G

  • Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    You can use some third party software to copy the music from your old iPod back to computer first, and then import the music into iTunes and re-sync them to yournew iPod. Here is a guide about how to transfer iPod music to computer. Hope it helps. Feel free to email me if you need further help.

  • How to save the output of sap script to pdf document in sap

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms

    Hi deepika,
    This thread will solve ur problem OTF  -> PDF
    Regards,
    Pravin

  • How to save the Response message from SOAP adapter

    Dear Friends,
       I am sending the FIle details webserver.here sender is FILE adapter and receiver is SOAP adapter.
    FIle to SOAP working successfully, but I need response from SOAP.
    Sender QoS is BE, so the response is coming to XI, but in SXMB_MONI it is showing DO YOU WANT TO SAVE IT or DISPLAY IT.
    my requirement is response message is directly updated in XI system.
    For response Can I use BPM or which method I need to use.
    Please suggest me  how to do the resonse message(SOAP to FILE).
    Regards,
    Shalini Shah.

    Sender QoS is BE,
    File adapter does not support sync communication. Therefore the scenario won't work as it is.
    What are you planning to do with the response? If you want to process is further, then:
    1. One way without BPM would be use of adapter module.
    File - RFC - File without a BPM - Possible from SP 19.
    2. Or you may use BPM with Async Sync bridge
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    Prateek

  • How to save the setting in MDM import manager?

    How to save the setting in MDM import manager? After I configure all things in MDM import manager, I try to save the setting, let's say, saved map name is " Test002", and then I export this map into desktop. After that, I logon Import manager again, and import this map file, system show me the same thing that I have to configure it again, because nothing was changed, what I configured before, were all disappeared.

    Hi Alfred ,
    are You not saving this map in Import Manager ? Import Manager itslef saves the map and remember it . Exporting map is only for backup .
    Pls make changes and save the map . Exit and relogin . then see the map . It should be there . Pls let us know the result .
    - An

Maybe you are looking for

  • Keyboard and mouse won't connect to iMac

    This morning, I suddenly lost connection between my 27' iMac and the wireless magic mouse. I had just scavenged a pair of batteries from a remote control the other day and while I wasn't notified of low batteries this morning, I assumed those new bat

  • Error in integration Log not found (in main memory)

    Hello Experts, We are facing an error at the moment  when we send a contract from CLM to the ERP, we run the transaction BBP_ES_ANALYZE and the error that we got is Log not found (in main memory). We already reviewed all master data integration, any

  • Which product is most suitable for me? I will be editing images and creating marketing materials for my business?

    I will need to be able to create corporate images and banners, also generate images for my website? which Photoshop product will allow me to do this? As i want to be sure I am purchasing the correct software for my needs? Thanks

  • [S] Can't create another account in Thunderbird

    Hi, I have been a long time user of Thunderbird. But I just ran into the weirdest problem: I can't see the main taskbar in Thunderbird and thus can't create another email account. What do? Pretty easy thing actually. That's all. Last edited by jones

  • Internal Order budget (urgent requirement)

    Hi, I have requirement to monitor Internal Order budget.if actual cost ia already 80% of the internal order, an email notification will be sent to a user. How can i do this requirement? do I need a user exit to make this? if yes, what user exit is it