Record Sound From a Microphone and convert it text file using jave applicat

Hi, I want source code for recording sound from a microphone which is connected to a sound card fixed in my machine,and convert that sound file to a text file , so that i can compare that text later with the command which i have stored already in my computer.How to do this in Java ? If any one could help me in solving this problem, it would be very helpful for me !

Have you looked into the JSAPI?
http://www.esus.com/docs/GetQuestionPage.jsp?uid=1471

Similar Messages

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to convert a HTML files into a text file using Java

    Hi guys...!
    I was wondering if there is a way to convert a HTML file into a text file using java programing language. Likewise I would also like to know if there is a way to convert any type of file (excel, power point, and word) into text using java.
    By the way, I really appreciated the help that you guys gave me on my previous topic on how to extract tests from a pdf file.
    Thank you....

    HTML files are already text files. What do you mean you want to convert them?
    I think if you search the web, you can find things for converting those MS Office files to text (or extracting text from them, as I assume you mean).

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • How to read some lines from a text file using java.

    hi,
    i m new to java and i want to read some lines from a text file based on some string occurrence in the file. This file to be read in steps.
    we only want to read the file upto the first Occurrence of "TEXT" string.
    How to do it ,,,
    Kinldy give the code
    Regards,
    Sagar
    this is the text file
    dfgjdjj
    sfjhjkd
    ghjkdg
    hjkdgh TEXT
    ikeyt
    ujt
    jk
    tyk TEXT
    rukl
    r

    Hendawy wrote:
    Since the word "TEXT" is formed of 4 letters, you would read the text file 4 bytes by four bytes. Wrong on two counts. First, the file may not be encoded 1 byte per character. It could be utf-16 in which case it would be two byte per character. Second, even if it were 1 byte per character, the string "Text" may not start on a 4 byte boundary.
    Consider a FileInputStream object "fis" that points to your text file. use fis.read(byte[] array, int offset, int len) to read every four bytes. Convert the "TEXT" String into a byte array "TEXT".getBytes(), and yous the Arrays class to compare the equality of the read bytes with your "TEXT".getBytes()Wrong since it relies on my second point and will fail when fis.read(byte[] array, int offset, int len) does not read 4 bytes (as is no guaranteed to). Check the Javadoc. Also, the file may not be encoded with the default character encoding.
    The problem is easily solved by reading a line at a time using a BufferedReader wrapping an InputStreamReader wrapping a FileInputStream and specifying the correct character encoding.
    Edited by: sabre150 on Apr 29, 2009 2:13 PM

  • Recording sound from internal microphone problem

    I am trying to record sound with my internal microphone.
    From quicktime no sound records
    From ISHOW U microphone becomes really loud and rings.
    Below are my sound settings
    http://scrappity.com/files/jpg4onw6bhsmxn561zxj.png
    http://scrappity.com/files/3gcaq6wu748b5byje7bm.png
    Can someone help?
    Message was edited by: teawithmilk

    You've selected *Line In* instead of *Internal Microphone* as your input source.
    I have no idea what iSHOW U is.

  • How can I record voice from external microphone and music on ipad

    I am a hypnotherapist and I want to record my sessions.  I would like my clients to wear headphones and hear both my background music (playing on my ipad) and my voice THROUGH the headphones as I speak into an external microphone.  I thought that I could play the music and plug in a snowball mic and have both music and voice record, as well as have my voice come through the headphones (so that the client is hearing voice and music directly into their ears).  I am using the ap Voice Recorder.
    Here are the two problems:  Using the external mic, I can record my voice, but the music does not record.  Also, when I speak into the microphone, it Voice Record records my voice but you can't hear it through the headphones (although you can hear the music).  Please help!!!

    Thanks.  I'll take a look.  Maybe I can use a powered USB hub.  Someone else mentioned this on another forum so that she could record karaoke and hear her voice and the music at the same time.  I think if I plugged the both a usb microphone and a headset into the hub, maybe...just maybe?  I can hear the music through regular earbuds.  I dunno.  Worth a try, though.  What do you think?

  • No sound from audio jack and screen doesn't dim, using BootCamp 3.1 in Win7

    I'm using BootCamp 3.1 in Windows 7 on a MacBook Pro (13-inch, Mid 2009)
    When I plug in headphones I get no output sound; however, I do get sound from the main speakers (regardless of the headphones being connected or not). Side note, there is no red light coming from the audio jack.
    Another problem that I'm having: when I try to dim the display, using either F1 or F2, or from the BootCamp Control Panel in the Dim tab, it doesn't dim.
    I've saw in Apple's Support Download section that there is "Boot Camp Update for MacBook Pro (13-inch, Mid 2010) (Windows 64 bit)", but as you can see it's "Mid 2010" and not "Mid 2009".
    However, for the sake of exhausting everything I can think of before posting here, I tried to download and install it. Only to get an error that states "The patch upgrade cannot be installed by the Windows Installer service because the program to be updated may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be updated exists on your computer and that you have the correct update patch."
    Any suggestions?

    the G5 is not en intel based cpu so people here may not know too much about the hardware setup but
    people here
    https://discussions.apple.com/community/desktop_computers/imac_powerpc
    would own the same type of computer as you do any that may result in them having more insight into what could be the issue

  • No sound from audio jack and screen doesn't dim, using BootCamp 3.1 in W7

    I'm using BootCamp 3.1 in Windows 7 on a MacBook Pro (13-inch, Mid 2009)
    When I plug in headphones I get no output sound; however, I do get sound from the main speakers (regardless of the headphones being connected or not). Side note, there is no red light coming from the audio jack.
    Another problem that I'm having: when I try to dim the display, using either F1 or F2, or from the BootCamp Control Panel in the Dim tab, it doesn't dim.
    I've saw in Apple's Support Download section that there is "Boot Camp Update for MacBook Pro (13-inch, Mid 2010) (Windows 64 bit)", but as you can see it's "Mid 2010" and not "Mid 2009".
    However, for the sake of exhausting everything I can think of before posting here, I tried to download and install it. Only to get an error that states "The patch upgrade cannot be installed by the Windows Installer service because the program to be updated may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be updated exists on your computer and that you have the correct update patch."
    Any suggestions?

    the G5 is not en intel based cpu so people here may not know too much about the hardware setup but
    people here
    https://discussions.apple.com/community/desktop_computers/imac_powerpc
    would own the same type of computer as you do any that may result in them having more insight into what could be the issue

  • How do I capture a peice of sound from a project, save it to a file, use it later.

    I want to capture or copy sound from a project in Elements 8, save it to a file, and use it later in the project.  Adeoby help is no help.

    Simply use the audio file which was dded to the project e.g the original file such as mp3, wma or wav

  • Recording data at particular iterations and writing to text file

    Hi all,
    this is my first time posting on the NI boards. I'm running into a couple problems I can't seem to figure out how to fix.
    I'm collecting data using a LabJack U3-HV daq. I've taken one of the out-of-the-box streaming functions that comes with the LabJack and modified it for my purposes. I am attempting to simply save the recorded data to a text file in columns, one for each of my 4 analog strain gauge inputs, and one for time. For some reason when the 'write to measurement file.vi' executes it is puts everything in rows, and the data is unintelligible.
    The 2nd issue I am facing, which is not currently visible in my vi, is that I am running my test for 60,000 cycles, which generates a ton of data. I'm measuring creep/fatigue with my strain gages so I don't need data for every cycle, probably for the first 1000, then the 2k, 4k, 6k, 8k, 10k, 20k, etc. More of an exponential curve. I tried using some max/min functions and then matching the 'write to measurement file.vi' with a case structure that only permitted it to write for particular iterations, but can't seem to get it to work.
    Thanks in advance for any help!
    Attachments:
    3.5LCP strain gages v2.vi ‏66 KB

    Hey carfreak,
    I've attached a screenshot that shows three different ways of trying to keep track of incrementing data and/or time in a while loop. The top loop just shows a program that demonstrates how shift registers can be used to transfer data between loops. This code just writes the iteration value to the array using the Build Array function.
    The first loop counts iterations in an extremely round-about way... the second shows that really you can just build the array directly using the iteration count (the blue "i" in the while loop is just an iteration counter).
    The final loop shows how you can use a time stamp to actually keep track of the relative time when a loop executes.
    Please note that these three should not actually be implemented together in one VI. I just built them in one BD for simplicity's sake for the screenshot. As described above, the producer-consumer architecture should be used when running parallel loops.
    Does that answer your question?
    Chris G
    Applications Engineer
    National Instruments
    Attachments:
    While Loops and Iterations.JPG ‏83 KB

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • How to attach and email a text file using UTL_MAIL.SEND_ATTACH_VARCHAR2

    Hi im trying to attach a text file 'sample.txt' located in '\Test_Loc\New_Folder'
    Here is my code and my OS is Solaris and im using 10g R2
    CREATE OR REPLACE
    procedure test_v2 as
    Begin
    UTL_MAIL.SEND_ATTACH_VARCHAR2(
    sender => '[email protected]',
    recipients => '[email protected]',
    cc => null,
    bcc => NULL,
    subject => 'RE: Testing Attachment',
    message => 'TEST',
    mime_type => 'text/plain; charset=us-ascii',
    priority => 1,
    attachment =>'\Test_Loc\New_Folder\sample.txt',
    att_inline => TRUE,
    att_mime_type => 'application/octet' ,
    att_filename => 'demo.txt'
    end;
    Where am i going wrong? Please help me out
    Regards
    Vibhuti

    Hi,
    i can´t belive that no one is helping you out until now.
    If you found a Solution, let me know.
    I´m in search of the same Problem...
    Regards
    Lone

  • How to ZIP the files and folders/sub folder files using java

    HI All,
    I'm New to this Forum, Could anybody tell me how to zip the files and folders/sub folders using java. For example I have a folder with the name testfolder and side that folder I have some files and some sub folders inside subfolders I have some other files. I need to ZIP the files and folders as they are in same hierarchy.
    Any pointers or help wolud be appritiated.
    Thanks,
    Rajeshbabu V

    [http://www.devx.com/tips/Tip/14049]

  • Java and XML :: Unlocking, editing and locking an XML file using JAVA

    I need to develop a form with Address field , When i enter address information and submit the form it needs to generate an
    XML file for furthur processing.
    Now my problem is :
    When i want to edit the address....after submitting the form by entering the address information, it should unlock
    the XML and edit the XML and then lock it.
    How can i achive programatically, unlocking an XML file, editing the file, and locking it?.
    Thanks,
    Maruthi.

    There's a FileLock class, you know, in the java.nio.channels package. However before you start using it you should read its API documentation carefully including statements like " Whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and therefore unspecified".
    Personally I would say that if you need to synchronize access to this XML file, you should consider changing your design to use something that supports locking a bit better, like a database. Or by writing a server that encapsulates the XML file and accepts requests to read it and update it, serializing those requests appropriately.

Maybe you are looking for

  • How to Flush DNS Cache in Mavericks 10.9.3

    So I have seen references to the following when searching for a cmd to flush DNS sudo killall -HUP mDNSResponder and sudo dscacheutil -flushcache Which one is proper for Mavericks 10.9.3?

  • Steps to take when a Windows-based database server changes domains

    For reasons beyond my control, my oracle 10 database servers, running Windows Server 2003 R2, have had their domain names changes. Oracle now does not work (none of the databases is addressable, the only error that gets thrown was a packet receive er

  • Speaker In Use airport express

    All of a sudden my Airport express wireles N edition won't work.  iTunes says "Speaker in use, please select another speaker."  I have hard reset the device several times. Changed the name of the device, the SSID it connects to. (I have 3. Two N, and

  • Apps to show real-time voltage of iPhone 5 battery?

          Is Apple blocking the info (such as real-time voltage, say 3.753V) and no Apps can show that info in realtime?  My iPhone drained quickly and I need to evaluate its health (My expertise is Li battery)      This company is known for heavy-hand r

  • Help- problems with V31.0.017 NOKIA N95

    HI everybody i got nokia n95, and i recently upgraded it to the last version. unfortunately,now my GPS does not work, he can only get 4 satlite and  i can not navigate with it. i have read that this problem is common and i am not the first one to rep