Capturing audio and saving to a file

Hai there..
I am designing an application which needs audio capturing..Every thing works well except one.. The audio file (with wav format) is created but it does not have any sound recorded..But the size is allocated for the audio file..can anyone provide some solution..Its urgent..Thanks in advance..

>
I am designing an application which needs audio capturing..Every thing works well except one.. The audio file (with wav format) is created but it does not have any sound recorded..But the size is allocated for the audio file..can anyone provide some solution..>Yeah, sure. Change the char at column 47 of line 356 from a ',' to a '.' and it should work perfectly.
In case that does not work for you, you might try *showing us your SSCCE that fails!*
In the meantime, here are two code sources that can save WAVs.
[Recording to an audio file (simple version)|http://www.jsresources.org/examples/SimpleAudioRecorder.html]
[Recording to an audio file (advanced version)|http://www.jsresources.org/examples/AudioRecorder.html]
>
...Its urgent..>For urgent matters, I recommend paying a consultant. For forum answers, I recommend being patient.
>
..Thanks in advance..>For my part, thanks is well expressed by adding [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match your interest in getting a solution.
Edit 1:
Also note:
- Java sound has been part of the J2SE since version 1.3, whereas the JMF has been abandoned about as long. The best forum for +(future)+ sound related problems is the [Java Sound forum.|http://forums.sun.com/forum.jspa?forumID=541].
- I also read another thread you started where a person mentioned the code tags. Not only did you fail to take their advice, but entirely ignored the comment. If you intend ignoring the advice offered, why are you asking? Or perhaps more to the point, why should we answer? If you read anything that you do not understand, please ask what the person means, rather than ignore them and blunder on, as you seem to be intent on doing.
Edited by: AndrewThompson64 on Dec 8, 2008 6:19 AM

Similar Messages

  • Labview IMAQ VI for capturing images and saving with incremental file names

    Hello,
    I am using LabView 7.1(IMAQ) to capture images with NI's PCI 1426 card, and a JAI CV-M2 camera. Now, with the example VI's like LL Grab, or LL Sequence, or Snap and Save to File.vi, I can capture the images. But what I actually want is to capture images continuously and keep saving them with a sequentially incrementing file name.
    I have tried to modify the Snap and Save to File.vi  by adding a 'for loop', so as to run this for required number of images. This works okay, but I can't really change the file name after every image. However, I'm not confident with this method either. I think it would be better to use the buffer itself, as is given in LL Grab.vi and somehow save images from the buffer. I think this would be faster ?
    In any case, any ideas as to how I should go about implementing auto-incrementing of the file name ?
    Any help will do. 
    Thanks.
    - Prashant

    Hi,
    Thanks a lot for replying. 
    I tried using this in the VI i was working with, but using the "build path" vi doesnt seem to work. If I use just the base path from user's input, it works, but then again it keeps overwriting the images into one file rather than giving each file a new name. I'm attaching the vi. 
    Please take a look and tell me where i'm going wrong.
    Thanks again.
    Attachments:
    LL Sequence_mod.vi ‏62 KB

  • Capture audio and video files to seperate files

    Forum,
    Having suffered problems with OS 10.5 and Quicktime 7.4.1 I have done a clean install with 10. 4 .11.
    When I select capture the following notice appears
    "Audio only capture selected,video preview disabled"
    In system settings "capture audio and video to seperate files " is NOT checked.
    But that may not mean the same as the statement in in the capture window.
    I have searched HELP and a book called" Optimizing your Final Cut Pro System" but can not find an answer.
    Advice would be appreciated.
    Thank you
    Michael Craven

    Hi,
    Check this:
    in Log & Capture window select Clip Settings tab and make sure video box is checked.
    Cheers,
    G.

  • Capture Audio and Video to different disks or not?

    I thought that capturing audio and video to separate disks was more efficient, now I see in the FCS 2 documentation it says that this is not recommended for any of the DV formats. But it does not say why, or what the consequences of doing this are...
    Does anyone out there know?
    Thanks,
    Pete d.

    Peter Durso wrote:
    Now, Is there any value in putting the render files on a drive that is separate from the Capture disks?
    Pete D.
    Absolutely. Listen to your drives while doing an intense render. The Capture drive is grabbing all of the video clips in the stack, the system drive is grabbing software. If you render to the Capture drive, that same drive has to write, too. Reduce the load by using a Render drive.
    I have four drives: System, Capture, Render, Output. The last is used for all exports, encodes, and transcodes.
    bogiesan

  • Capturing audio and video .....

    Hello everybody, I'm new to the world of Adobe Premiere Elements, a source present. I have a pavilon pc hp m9040n, Windows Vista Premium 32-bit, Adobe Premiere Elements 3.0. I want to capture audio and video on a DVD, the pilot is set to DV / HDV and the HDV format in the acquisition and says that the peripheral acquicision is not online. The same happens when I connect a video camera Hi8 Sony. Can help to solve this?, Thank you very much.

    It sounds like you are having problmes capturing from two separate cameras. What are the manufacturers and the exact model numbers please? Also, how are these cameras attached to the computer, i.e. FireWire cable into the corresponding FireWire port on the computer?
    It sounds as though you are attempting to do the Capture from within PE3. Is this correct? If so, what is the order that you connect the cameras, turn them on, their settings and the order that you launch PE3, and also the Capture module of PE3? Might be something there.
    Good luck,
    Hunt

  • Capture Audio and Slide show with JMF?

    Hello All;
    Can anyone guide me to start on how to stream or capture both Audio from the Mic and Slide show from Power point and generate a AVI file.
    ie., User starts presenting a Conference with Audio and Slide show, I want to implement an Application that runs in the background and Merges Audio and Slides to a AVI or MOV file.
    Please help...
    I tried using Screengrabber but please let me know what you think...

    Well,i wnt to do that too.
    I have this Algorithm(didnt implement that but...)
    I will use Two Threads
    one will be the Screen Grabber,
    and with synchronzed Methods,and the Other thread will capture my voice .
    Thus ,meaning using ONE Processor,TWO DataSources that we will merge and ONE dataSink to Save on a file.
    That Bring me to My Question:
    I cant Grab the Cursor in my Screen Grabber.
    I use the Following Code:::
    DataSource ds = Manager.createDataSource(new
    MediaLocator("screen://0,0,176,144/10"));
    MediaPlayer mp=new MediaPlayer();
    mp.setDataSource(ds);
    mp.start();
    Please Help me

  • How to get audio and video in one file

    hi...I am "premiere beginner user" and I have a simple question , I think..:)...Every time when I am trying to export media out from my premiere (using media encoder) I get video file and some audio files, but what I need is only ONE file, that contains both (audio and video)..for example , I have edited film in hd quality and I want it to export, I choose h.264 format(make some settings,pal,audio quality...) and when it´s "all done", only "result" I get is one video file and two audio files and they are not together :).....so please help mme anyone..ok and as you can see I am not from english speaking country, so sorry for my english...thanks for help....

    There is no indication that something is out-of-sync or the ability to move/slip into sync like in FCE/FCP.
    To the best of my knowledge, using match frame and overwriting the video with video+audio (or attaching it as a connected clip if you don't want to overwrite the video, which might have effects applied) is the best way to do this.
    You can use the blade tool first in the timeline to get just the section you want to get back into sync. Make cuts so that you have a single clip that needs the audio resynced, select it, and use shift-F to select the original synced clip in the Event Browser. Make sure your play head is at the beginning of this video clip in the timeline. Press option-2, then 'q', and now you have the audio back in your timeline, synced with the video.  Delete the old, no-longer-synced audio and you should be set.

  • I use pages to draft forms that i repeatedly use in my business.  Last week i drafted a legal document and saved to my file. now i get message that it won't open without newer version of pages but i have the latest version  whats up??

    I use pages to draft forms that i repeatedly edit and use in my business.  Ex:  letterhead, envelopes, and legal forms.  I recently drafted a legal form
    for a client.  saved it and then reopened and printed the next day.  now when i try to open that form, ( or letterhead or envelope) i get a message that
    it wont open and that i need a newer version of pages.  but my pages software is up to date.   Whats up with this??

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Scanning from my iphone 4 and saving to PDF file on to laptop later

    how can i scan from my iphone 4 and create a pdf file to store on my laptop my wireless printer is photosmart 6510

    Hi,
    You may scan by using the HP ePrint Home and Biz app.
    Below you may find the steps to get the App:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02775166&cc=us&dlc=en&lc=en&product=3795314&tmp...
    Set the scan as Document and it will be saved as PDF.
    You may also share the scanned files from the app.
    Click the Help (?) icon at the top and you will find the steps to share and access the files from your computer under the Transferring Files Wirelessly section.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Importing masters from iPhoto to Aperture 3 and saving as referenced files on external drive

    I'm making the move from iPhoto to Aperture 3.I'm new to Aperture 3 and want o make sure I am importing and saving correctly. So far, I have imported my library of events from iphoto to Aperture 3. I understand that for the most part, it makes sense to house this library on an external drive as "referenced files" vs within Apeture as "managed files." I'm not clear on exactly how to accomplish this set-up. Is this something I should have set-up when doing the initial import or can I move the files now? Once this is done, when importing new files, how do I import to Aperture 3 but save on external drive?
    Thanks in advance for your help!

    A fabulous answer:
    In the olden days ( ) when hobbyists made their own telescopes from kits, everyone wanted a six-inch lens, and the kit makers shipped six-inch lens blanks.  Which the hobbyists used to learn lens grinding.  Which is arduous and requires skill.  Which the hobbyists didn't have until they'd ground that six-inch blank -- an expensive piece of high-quality material at the time -- into a lumpen flawed approximation of a good lens.  Then the hobbyists would contact the kit makers and ask for another lens-blank, so they could build their telescope.  At which point they would drop the project because the six-inch lens blank cost so much.  And much calumny was rained on the kit manufacturers.
    Now the kit manufacturers wanted to promote a hobby, and make, in addition to telescope kits, money (not calumny), so they together and separately hit upon the idea of supplying the hobbyist with _two_ lens blanks: a four-inch blank, and a six inch blank.  Nobody wanted a four-inch telescope -- but that's not what the blank was for.  The instructions read (I've shortened this part) "Grind the four-inch blank into the most perfect lens you can.  Check it and re-check it.  Now throw it out.  You likely now have the skill to grind the six-inch blank into a useable lens."
    Thus endeth our fable.
    The point, of course, is:  start small and gain skill before committing time and material to a task.  Port just a small sub-set of you photos into Aperture.  Experiment with it.  Try different workflows.  Think about how to best use the containers and organization tools Aperture provides.  Develop a long-term naming convention for files and Projects.  Work out a back-up strategy that is scalable and that you will stick with.  My specific recommendation for beginners is: don't worry about Referenced v. Managed at first.  Make all your Masters Managed.  When you have your four-inch Aperture Library all smooth and even, put the entire thing in the system trash -- and then you can start working on an Aperture Library fit for your photos -- one that will allow you to see far, and clear, for years.
    Good luck.

  • Capturing Audio and Video of DVD

    I need to convert sections of a DVD (audio and video) that I narrated on to mp3/mp4 so I can put it up on my website.
    Is there a way to do that with Quicktime? Some plugin?
    Thanks
    G4 Powerbook   Mac OS X (10.4.8)  

    Is there a way to do that with Quicktime? Some plugin?Not normally. While there is an MPEG-2 QT component for the video data, it ignores the audio. I would normally use MPEG Streamclip (free) to demux the audio data to AIFF. This is a very quick operation. Since the AIFF file is fully compatible, it can then be converted to other audio formats by QT Pro and/or iTunes.

  • Modifying and saving a Excel file by the use of Blob-Stream Method?

    Hi everyone...
    I'm trying to change and modify a Excel file which is received as Blob variable from database.
    I wrote a PL/SQL Procedure which get the Excel file and convert it to blob; after that send it as the parameter of a Java source called TestPrintExcel
    CREATE OR REPLACE DIRECTORY VMI_TEST_DIR AS '/afc/opt/dba/test_utl_dir';
    GRANT READ, WRITE ON DIRECTORY SYS.VMI_TEST_DIR TO SYSTEM;
    declare 
       bfi  bfile := bfilename('VMI_TEST_DIR','TestFzglist.xls');
       bin  blob;
       cout clob;  
    begin
       dbms_lob.open(bfi);
       dbms_lob.createtemporary(bin, true);
       dbms_lob.loadfromfile(bin, bfi, dbms_lob.getlength(bfi));
       dbms_lob.close(bfi);
       dbms_lob.createtemporary(cout, true);
       dbms_java.set_output(100000);
       TestPrintExcel(bin);
       dbms_output.put_line('done!');
    end;With the following Java procedure I can read the content of the Excel file and write it to database perfectly. But the question is, how can i save the excel file with the same way, if i would change or insert any cell? I mean with the same way that to save as blob stream. Because i get permission error when i use another methods like FileOutputStream, FileInputStream etc. That's way i want to resolve this problem with the blob-stream method. Can anybody tell me how i can do that or what a method i have to use?
    Thanks.
    create or replace and compile java source named xltest as
      import org.apache.poi.ss.usermodel.WorkbookFactory;
      import org.apache.poi.ss.usermodel.Workbook;
      import org.apache.poi.ss.usermodel.Sheet;
      import org.apache.poi.ss.usermodel.Row;
      import org.apache.poi.ss.usermodel.Cell;
      import org.apache.poi.ss.util.CellReference;
      import org.apache.poi.ss.usermodel.DataFormatter;
      import org.apache.poi.ss.usermodel.FormulaEvaluator;
      import java.util.*;
      import java.sql.*;
      import oracle.sql.*;
      import oracle.jdbc.driver.*;
      public class XLTEST {
        public static void printx( oracle.sql.BLOB xblin ) throws SQLException {                       
          Connection Conn = null;
          try {
            Conn = DriverManager.getConnection( "jdbc:default:connection:" );
            Workbook wb = WorkbookFactory.create( xblin.getBinaryStream() ); // "/afc/opt/dba/test_utl_dir/TstFzglist.xls"
            for ( int sheetNum = 0; sheetNum < wb.getNumberOfSheets(); sheetNum++ ) {  //NumberOfSheets
              String TableName = new String();       
              switch( sheetNum )
                case 0:
                  TableName = "freeimportxls_s1"; break;           
                case 1:
                  TableName = "FreeImportXLS_S2"; break;
                case 2:
                  TableName = "FreeImportXLS_S3"; break;
                default:
                  break;                  
              Sheet sheet1 = wb.getSheetAt(sheetNum);         
              java.util.Iterator<Row> ri = sheet1.rowIterator();                 
              while ( ri.hasNext() ) {
                Row row = ri.next();
                java.util.Iterator<Cell> ci = row.cellIterator();                       
                while ( ci.hasNext() ) {
                  Cell cell = ci.next();
                  CellReference cellRef = new CellReference( row.getRowNum(), cell.getColumnIndex() );                         
                  switch( cell.getCellType() ) {
                  case Cell.CELL_TYPE_STRING:                            
                    Values   += "'" + cell.getRichStringCellValue().getString() + "'";               
                    break;
                  case Cell.CELL_TYPE_NUMERIC:
                    Values   += "'" + cell.getNumericCellValue() + "'";
                    break;
                  case Cell.CELL_TYPE_BOOLEAN:
                    Values   += "'" + cell.getBooleanCellValue() + "'";
                    break;
                  case Cell.CELL_TYPE_FORMULA:
                    Values   += "'" + cell.getCellFormula() + "'";
                    break;
                  default:
                    Values   += "''";               
                  int Counter1 = cell.getColumnIndex() + 1;
                  int Counter2 = row.getLastCellNum();
                  if ( Counter1==Counter2 ) {
                    Values   += ")";                          
                  else {
                    Values   += "," ;
                } System.out.println ( Values );               
                if ( ( sheetNum >= 0 ) && ( sheetNum <=2 ) ) {
                   String sqlUpdate = "INSERT INTO " + TableName + " VALUES " + Values;
                   PreparedStatement pstmt = Conn.prepareStatement( sqlUpdate );                                          
                   pstmt.executeUpdate();           
                   pstmt.close();              
            } Conn.close();
          } catch ( java.sql.SQLException e ) {       
            System.err.println( e.getMessage() );
            e.printStackTrace( System.err );
            Conn.close();}        
      };

    Hi,
    Because i get permission error when i use another methods like FileOutputStream, FileInputStream etc.Permission errors are generally resolved by granting the proper privilege via DBMS_JAVA.grant_permission procedure.
    Have you already tried that?
    http://download.oracle.com/docs/cd/E11882_01/java.112/e10588/chten.htm#BABHDBCJ

  • Capturing Audio and need to stored

    Hello,
    I am working on AS 2.0, i need to record an audio of user
    with the help of microphone, I can perform this well but can we
    store that audio clip with AS 2.0. Or else what is the procedure to
    store input audio in AS to our PC( any format ).

    >
    I am designing an application which needs audio capturing..Every thing works well except one.. The audio file (with wav format) is created but it does not have any sound recorded..But the size is allocated for the audio file..can anyone provide some solution..>Yeah, sure. Change the char at column 47 of line 356 from a ',' to a '.' and it should work perfectly.
    In case that does not work for you, you might try *showing us your SSCCE that fails!*
    In the meantime, here are two code sources that can save WAVs.
    [Recording to an audio file (simple version)|http://www.jsresources.org/examples/SimpleAudioRecorder.html]
    [Recording to an audio file (advanced version)|http://www.jsresources.org/examples/AudioRecorder.html]
    >
    ...Its urgent..>For urgent matters, I recommend paying a consultant. For forum answers, I recommend being patient.
    >
    ..Thanks in advance..>For my part, thanks is well expressed by adding [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match your interest in getting a solution.
    Edit 1:
    Also note:
    - Java sound has been part of the J2SE since version 1.3, whereas the JMF has been abandoned about as long. The best forum for +(future)+ sound related problems is the [Java Sound forum.|http://forums.sun.com/forum.jspa?forumID=541].
    - I also read another thread you started where a person mentioned the code tags. Not only did you fail to take their advice, but entirely ignored the comment. If you intend ignoring the advice offered, why are you asking? Or perhaps more to the point, why should we answer? If you read anything that you do not understand, please ask what the person means, rather than ignore them and blunder on, as you seem to be intent on doing.
    Edited by: AndrewThompson64 on Dec 8, 2008 6:19 AM

  • Capturing, timestamping and saving a video stream from a webcam ?

    Hello everybody,
    Glad to be in this forum.
    I got to do a program in java doing :
    - a capture of a video stream from a webcam
    - adding time and date on it
    - saving the video stream in a video format compatible with linux and windows
    Is it possible to do that in java (using JMF I guess) ?
    Could anyone help me to progress on my project ?
    thx a lot
    agussi

    Hi agussi, yes, it's possible to do that in Java using JMF.
    I'm not a JMF expert, but I've found this code very useful: http://forum.java.sun.com/thread.jspa?threadID=570463&tstart=50
    This piece of code shows the webcam stream and you can take snapshots with it. With a little tweak you can do what you are expecting.
    I hope this helps.
    Ivan

  • Using a foreign language with the Java I/O, and saving to flat file.

    I want to use a foreign language in my program, in particular, russian. I want to be able to input the russian text into a GUI and then save the data in a flat file as well as retrieve it again. I am able to save some type of data to the flat file but it is unreadable. Question marks or some other unreadable characters appear instead.
    I am also not able to write in a foreign font. Can someone give me some advice for how to input a foreign language into with a GUI, save the information in a flat file, and retrieve it again.

    If you have got a String in Java somehow regardless of interior encoding mode, you can write it in a text file with an encoding you would like (e.g., UTF8).
    //import java.io.*;
    String str = "ABCEDFG";
    try{
       BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("out.txt"),"UTF8"));
       bw.write(str);
       bw.close();
    }catch(IOException ioe){
        //process
    }

Maybe you are looking for

  • Linking between the tables

    Hi all. i wish to know the common table between tables eban,ekko,ekpo and eket. As their is no common key field although ebeln and ebelp are there but their check tables are different, please guide me how to link these tables. As my select query is s

  • Cant find pictures on phone

    I can no longer find photos I take with my camera on my Blackberry Curve 8530 phone.  My pictures used to save automatically and instantly on my phone, but they don't any longer. Where are they going?  Can someone walk me through where to look and ho

  • IPod passwords saving question

    In Safari "Settings" under "Auto-Fill" I set "Names and Passwords" to "ON".  I bring up a website and enter my email and password.  The iPod saves this information; however, my understanding is that before it saves for each site, a prompt should come

  • Infopath has encountered an error. The operation failed. Not enough storage is available to process this command

    hello, Using INFO PATH 2013 on Windows 7 64 bit, user is getting the error "Infopath has encountered an error. The operation failed. Not enough storage is available to process this command" We added the registy IRPStackSize and set it to max 50. This

  • Installing on PC and laptop

    I purchased an upgrade CD to LR4 which I installed on my PC.  My PC already had LR3 on it of course. My understanding is the licensing allows installation on a home PC and laptop provided both are not used simultaneously.  I want to install LR4 on my