How can i record sound and save it in a file..?

Can someone plz provide me a simple code for recording sound and saving it in a file..

Nope...all of the code to do that is complicated...and since you apparently can't figure out google, I'm afraid you're likely out of luck.

Similar Messages

  • Can you record sounds and save as a ringtone with the IPhone4?

    I'm new to the IPhone. All other phones I' ve used in the past I could save sounds and use them as a ringtone. I just can't seem to figure it out with the I4. Can it be done?

    You can record sounds with the Voice Memos app, then sync them to your computer by selecting "Include voice memos" on the Music tab of y0ur iTunes sync settings and syncing your phone.  Once synced to your computer they will appear in a Voice Memos playlist that iTunes creates on the left sidebar.  Then you have to convert it to a ringtone using iTunes as shown here: Create free ringtones with iTunes 10.  After this is done, you can check the ringtone in your iTunes library, then check Sync Tones on the Tones tab of your iTunes sync settings and sync.  Custom ringtones will appear in Settings>Sounds>Ringtone at the top of the list.

  • I can't open Firefox and I haven't saved my extensive bookmarks, which contains all my important websites. How can I start Firefox and save my bookmarks?

    I have a Dell Inspiron E1505, and I use Kaspersky Internet Security. The past week, I've had problems opening Firefox - it has been slow. Today, it just won't open at all. At first I thought it was my Internet connection, so I called my provider, Comcast Cable. But I was also able to open Internet Explorer. I was told that I may have to remove Firefox, and redownload it, but it would erase all my bookmarks. How can I access Firefox and save my bookmarks?

    Try starting Firefox in Safe Mode (Firefox Safe Mode, not Windows Safe Mode).
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, check out this article:
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    To export bookmarks to an HTML file that IE and other browsers can read, see [https://support.mozilla.com/en-US/kb/Exporting%20bookmarks%20to%20an%20HTML%20file Exporting bookmarks to an HTML file | How to | Firefox Help].
    Any luck?

  • HOW CAN I GO BACK AND EDIT A PDF OR FILE .. ON LINE

    How can I go back and open  file and edit?

    [Locking this thread. Please see answer in the duplicate post at HOW CAN I GO BACK AND EDIT A PDF OR FILE .. ON LINE]

  • How can one record live and simulatoneously show what is getting recorded?

    hello friends
    how can one record live video and simulatoneously show what is getting recorded?
    please help?
    Manmeet

    i have found solutions
    thanks

  • Satellite A300-1NO - How can I record sound?

    Hello. I've got a Satellite A300-1NO machine, but I don't know how to set my sound card, because I want to record any sound that my sound card plays. For example listening an internet radio and record a track from it.
    I can only set my microphone to record it, and can't see any more opportunity. Waveout or anything else....How could i solve this problem? I've got the 6.0.1.5599 sound driver.

    Hello
    If you want to record the sound that plays the sound card you need an additional program. So its not possible to record sound only with the sound driver.
    There are many programs that can do this. I have good experience with No23 Recorder. Use Google to find it. Its freeware and easy to use.
    Furthermore there are some programs that streams internet radio and record it too. But I dont use such a program but Google can help you to find one.
    Greets

  • How can I automatically fill and save PDF forms from an iSeries database file withouth viewing PDFs?

    We have incoming data that we need to insert into a PDF form then save an individual PDF file for each record from the database table for our Image system.  Data is coming from an iSeries file and I can Manually perform all the steps within the process, but this needs to be something that we can run from a scheduled job and should be a totally hands off process.  The form is in Adobe Acrobat and I've been trying some of the JavaScript pieces, but can't seem to get everything to run automatically.  I'm new to PC programming and can use any suggestions on how to handle this process.

    You might want to post this to the Acrobat SDK forum here. For it to work with Acrobat, it cannot be a completely automated process, however, due to licensing (and technical) restrictions. There are a number of third-party APIs that might help. If you post again, include what format the data is in (FDF, XFDF, XML, XDP) and what programming languages you can work in.

  • How can I record sound

    I use this code below to record sound, but it failed. The output is :
    Press ENTER to start the recording.
    Recording...
    Press ENTER to stop the recording.
    Recording stopped.
    After I pressed ENTER, it stoped recording immediately.
    The code is:
    *     SimpleAudioRecorder.java
    *     This file is part of jsresources.org
    import java.io.IOException;
    import java.io.File;
    import javax.sound.sampled.DataLine;
    import javax.sound.sampled.TargetDataLine;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.LineUnavailableException;
    import javax.sound.sampled.AudioFileFormat;
    * <titleabbrev>SimpleAudioRecorder</titleabbrev> <title>Recording to an audio
    * file (simple version)</title>
    * <formalpara><title>Purpose</title> <para>Records audio data and stores it
    * in a file. The data is recorded in CD quality (44.1 kHz, 16 bit linear,
    * stereo) and stored in a <filename>.wav</filename> file.</para></formalpara>
    * <formalpara><title>Usage</title> <para> <cmdsynopsis> <command>java
    * SimpleAudioRecorder</command> <arg choice="plain"><option>-h</option></arg>
    * </cmdsynopsis> <cmdsynopsis> <command>java SimpleAudioRecorder</command>
    * <arg choice="plain"><replaceable>audiofile</replaceable></arg>
    * </cmdsynopsis> </para></formalpara>
    * <formalpara><title>Parameters</title> <variablelist> <varlistentry> <term><option>-h</option></term>
    * <listitem><para>print usage information, then exit</para></listitem>
    * </varlistentry> <varlistentry> <term><option><replaceable>audiofile</replaceable></option></term>
    * <listitem><para>the file name of the audio file that should be produced from
    * the recorded data</para></listitem> </varlistentry> </variablelist>
    * </formalpara>
    * <formalpara><title>Bugs, limitations</title> <para> You cannot select audio
    * formats and the audio file type on the command line. See AudioRecorder for a
    * version that has more advanced options. Due to a bug in the Sun jdk1.3/1.4,
    * this program does not work with it. </para></formalpara>
    * <formalpara><title>Source code</title> <para> <ulink
    * url="SimpleAudioRecorder.java.html">SimpleAudioRecorder.java</ulink> </para>
    * </formalpara>
    public class SimpleAudioRecorder extends Thread {
         private TargetDataLine m_line;
         private AudioFileFormat.Type m_targetType;
         private AudioInputStream m_audioInputStream;
         private File m_outputFile;
         public SimpleAudioRecorder(TargetDataLine line,
                   AudioFileFormat.Type targetType, File file) {
              m_line = line;
              m_audioInputStream = new AudioInputStream(line);
              m_targetType = targetType;
              m_outputFile = file;
          * Starts the recording. To accomplish this, (i) the line is started and
          * (ii) the thread is started.
         public void start() {
               * Starting the TargetDataLine. It tells the line that we now want to
               * read data from it. If this method isn't called, we won't be able to
               * read data from the line at all.
              m_line.start();
               * Starting the thread. This call results in the method 'run()' (see
               * below) being called. There, the data is actually read from the line.
              super.start();
          * Stops the recording.
          * Note that stopping the thread explicitely is not necessary. Once no more
          * data can be read from the TargetDataLine, no more data be read from our
          * AudioInputStream. And if there is no more data from the AudioInputStream,
          * the method 'AudioSystem.write()' (called in 'run()' returns. Returning
          * from 'AudioSystem.write()' is followed by returning from 'run()', and
          * thus, the thread is terminated automatically.
          * It's not a good idea to call this method just 'stop()' because stop() is
          * a (deprecated) method of the class 'Thread'. And we don't want to
          * override this method.
         public void stopRecording() {
              m_line.stop();
              m_line.close();
          * Main working method. You may be surprised that here, just
          * 'AudioSystem.write()' is called. But internally, it works like this:
          * AudioSystem.write() contains a loop that is trying to read from the
          * passed AudioInputStream. Since we have a special AudioInputStream that
          * gets its data from a TargetDataLine, reading from the AudioInputStream
          * leads to reading from the TargetDataLine. The data read this way is then
          * written to the passed File. Before writing of audio data starts, a header
          * is written according to the desired audio file type. Reading continues
          * untill no more data can be read from the AudioInputStream. In our case,
          * this happens if no more data can be read from the TargetDataLine. This,
          * in turn, happens if the TargetDataLine is stopped or closed (which
          * implies stopping). (Also see the comment above.) Then, the file is closed
          * and 'AudioSystem.write()' returns.
         public void run() {
              try {
                   AudioSystem.write(m_audioInputStream, m_targetType, m_outputFile);
              } catch (IOException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              if (args.length != 1 || args[0].equals("-h")) {
                   printUsageAndExit();
               * We have made shure that there is only one command line argument. This
               * is taken as the filename of the soundfile to store to.
              String strFilename = args[0];
              File outputFile = new File(strFilename);
               * For simplicity, the audio data format used for recording is hardcoded
               * here. We use PCM 44.1 kHz, 16 bit signed, stereo.
              AudioFormat audioFormat = new AudioFormat(
                        AudioFormat.Encoding.PCM_SIGNED, 44100.0F, 16, 2, 4, 44100.0F,
                        false);
               * Now, we are trying to get a TargetDataLine. The TargetDataLine is
               * used later to read audio data from it. If requesting the line was
               * successful, we are opening it (important!).
              DataLine.Info info = new DataLine.Info(TargetDataLine.class,
                        audioFormat);
              TargetDataLine targetDataLine = null;
              try {
                   targetDataLine = (TargetDataLine) AudioSystem.getLine(info);
                   targetDataLine.open(audioFormat);
              } catch (LineUnavailableException e) {
                   out("unable to get a recording line");
                   e.printStackTrace();
                   System.exit(1);
               * Again for simplicity, we've hardcoded the audio file type, too.
              AudioFileFormat.Type targetType = AudioFileFormat.Type.WAVE;
               * Now, we are creating an SimpleAudioRecorder object. It contains the
               * logic of starting and stopping the recording, reading audio data from
               * the TargetDataLine and writing the data to a file.
              SimpleAudioRecorder recorder = new SimpleAudioRecorder(targetDataLine,
                        targetType, outputFile);
               * We are waiting for the user to press ENTER to start the recording.
               * (You might find it inconvenient if recording starts immediately.)
              out("Press ENTER to start the recording.");
              try {
                   System.in.read();
              } catch (IOException e) {
                   e.printStackTrace();
               * Here, the recording is actually started.
              recorder.start();
              out("Recording...");
               * And now, we are waiting again for the user to press ENTER, this time
               * to signal that the recording should be stopped.
              out("Press ENTER to stop the recording.");
              try {
                   System.in.read();
              } catch (IOException e) {
                   e.printStackTrace();
               * Here, the recording is actually stopped.
              recorder.stopRecording();
              out("Recording stopped.");
         private static void printUsageAndExit() {
              out("SimpleAudioRecorder: usage:");
              out("\tjava SimpleAudioRecorder -h");
              out("\tjava SimpleAudioRecorder <audiofile>");
              System.exit(0);
         private static void out(String strMessage) {
              System.out.println(strMessage);
    }

    I've never used it, but I believe Garage Band has a recording option.

  • How can i change date and time after importing a file

    hello
    i'm importing AVI files first in iMovie because Final doesn't support (other question i put in) but when i see the scenes form 1993 they have the date 2004.
    i believe 2004 is the date i put them on the computer.
    Now i looked in the help files Final Cut Pro but cant find anything to adjust the date and time.
    it works well in iMovie using the help files:
    Right-click the clip you wish to edit and click Adjust Clip Date and Time from the menu that appears. Or click on Archive and than adjust date and time
    But as i said i cant import the files in FCP have to import them to  iMovie files adjust the date and than import to Final Cut Pro but than de changes i made to the date and time  are gone and in FCP 2004 is again the date of the file!!!
    Question how can i Change in Final Cut Pro the date and time in a same way as iMovie does?
    Jemajoro

    OK, I think I understand what you are saying but it still does not look like it is doing it as you describe.
    Here is another screen shot.
    Note that all clips in "2007 August" event have the date of Aug x, 2007.
    Yet, the event "2007 August" still shows up under the 2012 "folder" (is that the right terminology?).
    The newest clip in this event is Aug 31, 2007 so shouldn't it be categorized as 2007 and not 2012?
    I think you know this but I am using the following feature:
    Go to the sprocket icon under the events.
    Select "Group events by date" and then by "group events by year and month"
    Thanks again for all the help

  • Can i fill in and save downloaded fillable pdf files???

    Does anyone know if I can fill in and save pdf forms that were downloaded from the internet without owning Adobe Acrobat 7.0???
    I used to have Acrobat 5.0 on my Windows based system - however on the MAC system I have not installed the Acrobat software (did not get the MAC version yet)
    Preview allows me to open it but can not enter values into the fields!!!!
    Any help appreciated...............
    PowerBookG4   Mac OS X (10.4.7)  

    Thank you both of you for the ideas - just tried it yes I filled in part of the form in Preview then saved it as post script - then the program tries to convert it back to PDF and displays it in Preview - but the second time Preview did not let me continue to fill in the form. Since the forms need to be filled in partially first and then later either readjusted or additional info provided - this system will not work without too much hassle.
    I am waiting now for Adobe to get back to me to see if they will allow me to purchase the upgrade package - although my previous version was for Windows.

  • How can I record reading and spelling ages for my pupils?

    Hello!
    I am trying to do quite a simple task in numbers but it is proving very difficult.  I am a special needs teacher who is new to IWorks and I wan to record my students' spelling and reading results as ages in years and months e.g. 8 yrs 11 months.  I cannot find a format to do this.  Once I am able to do this, I then want to be able to subtract their readng age from the previous year from their current reading age to see how much progress they have made in months.  I have found the duration formatting that allows you to record things in weeks and days, but nothing to record data in years and months.  If anyone is able to help, I'd greatly appreciate it.
    Thanks
    Tara

    The brute force approach would be to explicitly list the Yr and Mo in separate columns. The improvement calculation would be done on the Yr and Mo columns using an if statement to handle the arithmetic for the 1 year = 12 months complication.  The following figure shows an example showing the equations for F2 and G2.
    You could also do the improvement calculation by converting everything to months... but then you would have to separate the answer back into Yrs and Mos using the INT and MOD functions.
    One thing... I have not checked the equations to see if they work correctly for a student who has regressed to a lower reading level.

  • How to continuous data acquisition and save to an excel file using vc++

    Hi,
    I’m trying to build an MFC application with MSVC++6, where I would continuously acquire
    samples from 2 channels of a USB-6289. I’m using the DAQmx C functions.  I use the following codes to continuously get data:
    DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0,Dev1/ai1","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk(DAQmxReadAnalogF64(taskHandle,1000,-1,DAQmx_Val_GroupByChannel,data,2000,&read,NULL));
            DAQmxErrChk
    (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,1000,0,EveryNCallback,NULL));
            DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
     static int32 EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
        int32       error=0;
        char    errBuff[2048]={'\0'};
        static int  totalRead=0;
        int32       read=0;
        float64     data[1000];
        // DAQmx Read Code
        DAQmxErrChk(DAQmxReadAnalogF64(taskHandle,1000,-1,DAQmx_Val_GroupByChannel,data,2000,&read,NULL));
       if( read>0 ) {
        fflush(stdout);
            Error:
        if( DAQmxFailed(error) ) {
            DAQmxGetExtendedErrorInfo(errBuff,2048);
            DAQmxStopTask(taskHandle);
            DAQmxClearTask(taskHandle);
                return 0;
    static int32 CVICALLBACK DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData)
        int32   error=0;
        char    errBuff[2048]={'\0'};
        // Check to see if an error stopped the task.
        DAQmxErrChk (status);
    Error:
        if( DAQmxFailed(error) ) {
            DAQmxGetExtendedErrorInfo(errBuff,2048);
                //MessageBox("errors in DoneCallBack");
            DAQmxClearTask(taskHandle);
            //MessageBox(errBuff);
        return 0;
    I have two questions:
    1. how to save the data into an excel file? Can anyone show me some sample codes please?
    2.Are
    the data acquired from the two channels simultaneously? If I set the
    starting time at 0, sample frequency 1khz, can I directly multiply the
    sample number by 0.001 to calculate time (as shown below)?
    Time    channel1  channel2
    0.001    d11           d21
    0.002    d12           d22
    Thank you! 

    You aren't going to get much help with Visual C++ programing when asking questions in the LabVIEW forum. 
    Try the Measurement Studio for Visual C++ forum.
    Message Edited by Ravens Fan on 12-05-2008 04:24 PM

  • How can I record an audio sound and convert it to a ringtone?

    How can I record an audio sound and convert it to a ringtone?

    Record your voice using iPhone (for ringtone only 35 secs or under are valid), sync iPhone with iTunes.
    In iTunes the recorded voice is listed under Music as some_numbers.m4a.
    Right click on the item and choose Create AAC version.
    Drag the converted voice onto the desktop.
    Delete the voice copy in iTunes. (important step)
    On desktop, rename the some_number.m4a to something_more_intelligent.m4r
    Drag it back to iTunes and you will find it under Tones.
    Now select it (for sync) and connect your iPhone, do a sync.
    If everything works out, it will be in Settings > Sounds > Ringtone.
    Now choose a contact you want to assign this ringtone, tap Edit and add the ringtone.
    Hope this helps.

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

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

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

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

Maybe you are looking for

  • Unwanted Snippets appear in Webhelp output

    When producing Webhelp output, I've been having an out-of-date snippet appear in my document.  I use a common snippet in several projects, and in some of the projects, the snippet appears twice in the output when it's not supposed to.  I've modified

  • Userexit MM06E005 for ME21N

    Hi Experts, I have added a custom field to item data using exit MM06E005(screen 0111) for ME21/22/23n transaction. when I activate the exit, it creates a tab as "Customer Data" and the field is placed in it. I want to change the tab title from "Custo

  • My links are KILLIN me

    Hello. I'm 13. I have a site www.ChanceRuder.com and it was made on iWeb. How come so many of my links turn to little blue question marks when you mouse over them? What did I do wrong. You can see what I mean when you go to my Email page. Plllleeeaas

  • Apple should start to listen to customer issues with disappearing content.

    There are many threads with users experiencing missing downloads of tv shows. There is clearly something going on apples side here and really disappointed that no one has come forward and stated that we are aware of an issue and hope to have it fixed

  • Zebra printing in web dynpro/Adobe

    Hello, We have zebra label print designs in place (we dont want to design using adobe designer). Now we would like to enable subcontractors to print them online using web dynpro/Portal. 1. one way I identified is send the zebra spool as a file and sa