Sound File into AIFF file, 8 Bits, 8 Khz.

Write a small program that takes any sound file and converts it to: AIFF file, 8-bit, and 8-kHz, and a single channel.
Explain each step plese.

No, you should not lose any quality. File sizes are comparable, but .aiff supports a tag to which you can add artwork, .wav doesn't. If you want smaller files with no loss of quality convert to Apple Lossless. One of my test files is about 2/3 the size of the original.
tt2

Similar Messages

  • Problem converting music file into aiff: 'empty' aiff file

    I can't get on with my edit!! Problem: I try to convert a music file so I can use it in a sequence as background music. When I convert (export using quicktime conversion) the mp3 file into a aiff file (choosing bit depth 16 and 48000 khz) I can convert the file in an aiff file, but then, when I import this aif file and I want to listen to it, it doesn't contain any music, sound doesn't show up, as if it was empty (though shows 3 MB and right duration). What is going on here, what am I doing wrong??
    Please help!!

    It's not DRM protected, not coming from Itunes store... In fact it worked before but I don't know why it doesn't now, following all FCE instructions... MartinR you're right, it works when converting directly in itunes and then importing into FCE.
    Thanks guys!

  • How to input sound file into MS Access Database, not random folder?

    Hi, I am trying to input a sound file into an MS Access 2000 database, I know it can be copied and pasted into there, but how can u input into the database with a user record, i also need the code to extract it as well as inputting it....at the moment it records the sound and stores it as test.wav on the local drive....
    here is my code for my applet do far....
    compile this file first....
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import java.io.IOException;
    import java.io.File;
    import java.net.URL;
    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;
    public class VoicePasswordRecorder extends Thread {
         private TargetDataLine m_line;
         private AudioFileFormat.Type m_targetType;
         private AudioInputStream m_audioInputStream;
         private File m_outputFile;
         public VoicePasswordRecorder(TargetDataLine line,
                             AudioFileFormat.Type targetType,
                             File file)
              m_line = line;
              m_audioInputStream = new AudioInputStream(line);
              m_targetType = targetType;
              m_outputFile = file;
         /** Starts the recording.
             (i) The line is started,
              (ii) The thread is started,
         public void start()
              /* Starting the TargetDataLine. It tells the line that
                 data needs to be read from it. If this method isn't
                 called then it won't be able to read data from the line.
              m_line.start();
              /* Starting the thread. This call results in the
                 method 'run()'being called. There, the
                 data is actually read from the line.
              super.start();
         /** Stops the recording.
             Note that stopping the thread is not necessary. Once
             no more data can be read from the TargetDataLine, no more data
             can be read from the AudioInputStream. The method 'AudioSystem.write()'
             (called in 'run()' returns. Returning from 'AudioSystem.write()'
             is followed by returning from 'run()', and then the thread
             stops automatically.
         public void stopRecording()
              m_line.stop();
              m_line.close();
         /** Main working method.
             'AudioSystem.write()' is called.
              Internally, it works like this: AudioSystem.write()
             contains a loop that is trying to read from the passed
             AudioInputStream. Since there is a special AudioInputStream
             that gets 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 until no
             more data can be read from the AudioInputStream. In this case,
             it happens if no more data can be read from the TargetDataLine.
             This happens if the TargetDataLine is stopped. 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();
              /* 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. The PCM 44.1 kHz, 16 bit signed,
                 stereo was used.
              AudioFormat     audioFormat = new AudioFormat(
                   AudioFormat.Encoding.PCM_SIGNED,
                   44100.0F, 16, 2, 4, 44100.0F, false);
              /* Here, the TargetDataLine is being received. The
                 TargetDataLine is used later to read audio data from it.
                 If requesting the line was successful, it will open it.
              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);
              AudioFileFormat.Type     targetType = AudioFileFormat.Type.WAVE;
              /* The creation of the VoicePasswordRecorder object.
                 It contains the logic of starting and stopping the
                 recording, reading audio data from the TargetDataLine
                 and writing the data to a file.
              VoicePasswordRecorder     recorder = new VoicePasswordRecorder(
                   targetDataLine,
                   targetType,
                   outputFile);
              /* It is waiting for the user to press ENTER to
                 start the recording.
              out("Press ENTER to start the recording.\n");
              try
                   System.in.read();
              catch (IOException e)
                   e.printStackTrace();
              /* Here, the recording is actually started.
              recorder.start();
              out("Recording...\n");
              /* It is waiting for the user to press ENTER,
                 this time to signal that the recording should be stopped.
              out("Press ENTER to stop the recording.\n");
              try
                   System.in.read();
              catch (IOException e)
                   e.printStackTrace();
              /* Here, the recording is actually stopped.
              recorder.stopRecording();
              out("Recording stopped.\n");
         private static void printUsageAndExit()
              out("VoicePasswordRecorder: usage:");
              out("\tjava VoicePasswordRecorder -h");
              out("\tjava VoicePasswordRecorder <audiofile>");
              System.exit(0);
         private static void out(String strMessage)
              System.out.println(strMessage);
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.*;
    import javax.sound.sampled.*;
    import javax.swing.*;
    public class AppletTest extends JApplet
        implements ActionListener
        public AppletTest()
            comp = null;
            startrecording = null;
            stoprecording = null;
            recorder = null;
        public void init()
            Panel panel = new Panel(new FlowLayout(1));
            comp = new JTextArea(50, 50);
            comp.setPreferredSize(new Dimension(50, 50));
            comp.setEditable(false);
            JButton startrecording = new JButton("Start");
            JButton stoprecording = new JButton("Stop");
            comp.append("Please record your Voice Password...\n");
            GridBagLayout gridbag = new GridBagLayout();
            GridBagConstraints c = new GridBagConstraints();
            getContentPane().setLayout(gridbag);
            c.weightx = 1.0D;
            c.weighty = 1.0D;
            gridbag.setConstraints(comp, c);
            gridbag.setConstraints(panel, c);
            getContentPane().add(comp, c);
            getContentPane().add(panel, c);
            c.weightx = 0.0D;
            c.weighty = 0.0D;
            startrecording.setEnabled(true);
            stoprecording.setEnabled(true);
            startrecording.addActionListener(this);
            gridbag.setConstraints(startrecording, c);
            getContentPane().add(startrecording, c);
            stoprecording.addActionListener(this);
            gridbag.setConstraints(stoprecording, c);
            getContentPane().add(stoprecording, c);
            int width = 300;
            int height = 200;
            setSize(width, height);
            setVisible(true);
            boolean looping = false;
        public void actionPerformed(ActionEvent ae)
            if(ae.getActionCommand().equals("Start"))
                createRecorder();
                recorder.start();
                System.out.println("Start Button Clicked");
            } else
            if(ae.getActionCommand().equals("Stop"))
                recorder.stopRecording();
                System.out.println("Stop Button Clicked");
        private void createRecorder()
            String strFilename = "C:\test.wav";
            File outputFile = new File(strFilename);
            AudioFormat audioFormat = new AudioFormat(javax.sound.sampled.AudioFormat.Encoding.PCM_SIGNED, 44100F, 16, 2, 4, 44100F, false);
            javax.sound.sampled.DataLine.Info info = new javax.sound.sampled.DataLine.Info(javax.sound.sampled.TargetDataLine.class, audioFormat);
            TargetDataLine targetDataLine = null;
            try
                targetDataLine = (TargetDataLine)AudioSystem.getLine(info);
                targetDataLine.open(audioFormat);
            catch(LineUnavailableException e)
                comp.append("unable to get a recording line\n");
                e.printStackTrace();
                System.exit(1);
            javax.sound.sampled.AudioFileFormat.Type targetType = javax.sound.sampled.AudioFileFormat.Type.WAVE;
            recorder = new SimpleAudioRecorder(targetDataLine, targetType, outputFile);
            comp.append("Press ENTER to start the recording.\n");
            try
                System.in.read();
            catch(IOException e)
                e.printStackTrace();
            comp.append("Recording...\n");
            comp.append("Press ENTER to stop the recording.\n");
            try
                System.in.read();
            catch(IOException e)
                e.printStackTrace();
            comp.append("Recording stopped.\n");
        private JTextArea comp;
        private JButton startrecording;
        private JButton stoprecording;
        private SimpleAudioRecorder recorder;
    }I intend to use this for verifying the username, password and a voice password over the web....as shown in the following code...
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="en-us">
    <title>Home Page</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta name="Microsoft Theme" content="artsy 011, default">
    <meta name="Microsoft Border" content="tl, default">
    </head>
    <body background="arttilea.jpg" bgcolor="#000000" text="#FFFFCC" link="#FF9900" vlink="#999900" alink="#669933">
    <!--mstheme--><font face="Arial, Helvetica">
          <p align="left"><font size="4" color="#FFFFFF">Please enter login
          details below:</font></p>
    <form>
    <!--mstheme--></font><table border=0 cellpadding=3 cellspacing=3>
    <tr>
        <td align=right width="74"><!--mstheme--><font face="Arial, Helvetica">
          <p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Username</i></b></font></p>
        <!--mstheme--></font></td>
        <td width="335"><!--mstheme--><font face="Arial, Helvetica">
          <p align="left"><input type=text
          name=username size="20"></p>
        <!--mstheme--></font></td>
    </tr>
    <tr>
        <td align=right width="74"><!--mstheme--><font face="Arial, Helvetica">
          <p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Password</i></b></font></p>
        <!--mstheme--></font></td>
        <td width="335"><!--mstheme--><font face="Arial, Helvetica">
          <p align="left">
            <input
            type=password name=password size="20"></p>
          <!--mstheme--></font></td>
      </tr>
      <tr>
        <td align=center width="74"><!--mstheme--><font face="Arial, Helvetica">
          <p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Voice
          Password Check</i></b></font></p>
        <!--mstheme--></font></td>
        <td width="335"><!--mstheme--><font face="Arial, Helvetica">
           <p align="left">
    <APPLET CODE="AppletTest.class" ALIGN="MIDDLE" WIDTH=272 HEIGHT=38 NAME="AppletTest.class"></APPLET> </p>
        <!--mstheme--></font></td>
      </tr>
    <tr>
        <td colspan=2 align=center><!--mstheme--><font face="Arial, Helvetica">
        <p align="left"><font face="Arial Narrow"><input type=submit value="Enter Website" name="Submit"></font></p>
        <!--mstheme--></font></td>
    </tr>
    </table><!--mstheme--><font face="Arial, Helvetica">
    </form>
          <p align="left">This page was last updated on <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d/%m/%y" startspan -->25/03/04<!--webbot bot="Timestamp" endspan i-checksum="12776" -->.</p>
    <!--mstheme--></font></body>
    </html>I will be very grateful if somebody could help me out....as this is my first time at java programming ....also my first time for using this forum!
    Thanks,
    Regards,
    Mayur Patel

    Hi
    I Learned how to read a file text and Parse as StringTokenizer. But still i don't know how to read the Individual tokens into to database.
    But now i face a new Problem, i am not able to sort it out.
    i am posting my code
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.BufferedReader;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.*;
    import java.util.*;
    public class CSVExample {
        public static void main(String[] args) throws IOException {
            BufferedReader inputStream = null;
            PrintWriter outputStream = null;
            try {
                inputStream = new BufferedReader(new FileReader("file.csv"));
              String text;
                 while((text=inputStream.readLine())!= null)
                    StringTokenizer st = new StringTokenizer(text);
                         if(st.hasMoreTokens())
                        System.out.println(st.nextToken());
            } finally {
                if (inputStream != null) {
                    inputStream.close();
    }Here the Problem is The file.csv has got two fields ID, NAME The content of this file is as follows
    T12,MR.RAJ KUMAR
    T13,MR.EARNEST DIES
    T14,MR.MATHEW HYDEN
    Now when i StringTokenize this File The Output printed as follows
    T12,MR.RAJ
    T13,MR.EARNEST
    T14,MR.MATHEW
    That means when it finds the Space it is not printing the Remaining Text.
    Please Help me in this and then Tell me how to INSER The Tokens into the Database Table
    Thank you for your service
    Cheers
    Jofin

  • Set default import format when drag and drop sound file into multitrack view?

    I've looked around the preference panels but cannot find where to set the import settings for dragging and dropping sound files into multitrack view. Some of our computers have correct settings and others do not. Thanks for your help!
    G

    I should have been more specific, sorry... I mean bit depth and bit rate... On some machines this defaults correctly and on other machines it is wrong. Not sure how to set these to downconvert properly by default. Unless it automatically takes the format of the source file, in which case it's just been luck.
    Thanks,
    G

  • How do I enable all sound files wav,MP3 on windows 7 64-bit change system sounds

    How do I enable all sound files wav,MP3 on windows 7 64-bit change system sounds it will only give me the option to choose wav?

    Windows 7 uses .wav (wave) files for the sound events. The default folder that Windows 7 uses to store the sound files in is located at C:\Windows\Media.
    You cannot use a MP3 file but there are lots of (WAV to MP3 converters) available on internet which can help you to convert MP3 to wav  serving your purpose of changing system sound. 
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • How do I import video and sound files from a hard drive into Final Cut Pro X?

    I just installed the lastest upgrade to Final Cut Pro X.  I have an external hard drive connected to my computer and I want to import video and sound files into Final Cut Pro X- how do I make the transfer? 

    File>Import Files (Shift-Cmd-I). Select the files, fill out the dialog box that appears as you need.

  • What is the best way to integrate a sound file (mp3) into a PDF?

    I saw that its possible to do it by Tools->Multimedia->Sound. This works fine on a computer but not a tablet. So what is the right way to embed a sound file into a PDF of maybe by Indesign? What i want is that people can easily open a document (PDF) on a tablet and when they click on a (play)icon that they hear a sound file. The best thing is that they can stop or put it on pause.

    I think this functionality relies on Flash, so it's not likely it's going
    to work on mobile devices, certainly not on iOS ones.

  • Mixing sound files into one sound file. Urgent

    Hi,
    I want to mix different sound files into one sound file but I don't have any idea of how to do this. Can anybody tell me how or just point me to the right tutorial. I do not want to do this through an applet.
    Thanks all in advance.

    try it this way:
    String oneFile = "mp3" + "wav" + "allOthers";
    you can use System.out.println(oneFile) to see if it works. good luck!

  • How do I import an Amadeus Pro sound file into iMovie?

    I am fairly new to the Imovie 08 program and have a few questions.
    I've made the moveie and am in the process of editing out what I need and don't need. I have a sound file that I created in Amadeus pro that I need to use as the voice-over for the movie. I just can't figure out how to use that sound file over the movie. Can anyone help?
    Thanks

    The sound file must be in a supported audio codec like MP3, AAC, or several others.
    Place the sound file in a drive and a folder where you can leave it while your video project is active. If you move it later by using the finder, iMovie will not know how to find it.
    Now, drag the file into iMovie and drop it on the first clip where you want it to start playing.
    This [Video Tutorial|http://www.apple.com/findouthow/movies/ilife08.html#tutorial=audioclip s] may help.

  • How do I create an aiff sound file out of an iMovie clip?

    Hello. I'm trying to just pull the sound file out of an iMovie in the newest version of iMovie. I used to have the option to use quicktime to create a file, and from that screen I could just choose audio files. I can't find those options on the new version. Please help.

    I'm using iMovie '11 so I can't test these out for you but I think they should work.
    The first way is to drag the file from the Finder into the project you wan to add it to.
    The second way is to add the file to iTunes and then use the Music Browser in iMovie to access the file.
    Matt

  • Legacy Sound files into an iPod Touch for editing

    This isn't about music, but it seems to me the solution is the same regardless of what is on the sound file.
    I have old interviews I conducted as part of an old job. I want to put them on to my new iPod Touch to listen to while traveling. Since I am only interested in specific topics and passages I need to bookmark where in these hours-long interviews these passages are.
    I can get these interviews from my Mac into my Touch easily with iTunes, but I cannot bookmark or make notations in iTunes. There is a plethora of apps that will playback and edit/bookmark sound files for the Touch, but all of the ones I have found will only do this for files recorded with that app.
    If anyone has any thoughts on an app I have missed or a work around I would be forever grateful.

    No since you can only sync with one computer.
    To switch syncing computers:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • My Quicktime Mp4 Video Archive is Converting into Sound Files

    I archived a number of videos using quicktime, in mp4 format. I don't know if this was caused by a software update; but, these videos only play as sound files now. This has happened on quicktime videos stored independently on both of my Macs - so I don't think it is a problem with one of my computers.
    I must not be the only one who has experienced this problem. Does anyone know what to do about it?

    Thank you for the prompt response to my question. I opened up the "Movie Inspector". I don't see where it says "codecs"; but, is says:
    Format: H.264, 320 x 240, Millions AAC, Stereo (L R), 44.100 kHz.
    FPS: 29:97
    Playing FPS: (Available while playing.)
    Data Size: 5.72 MB
    Data Rate: 739.14 kbits / s
    Current Time: 0:00 01:04.93
    Duration: 0:00:01.04.93
    I hope that helps . . . Again, thank you for your reply.
    Best Wishes,
    Paul Hamilton

  • Insert sound file into Oracel DB via Forms 6i

    Dear All
    Pls let me know how to insert sound files in to Oracle DB via Forms 6i.
    Regards
    Lakmal Marasinge

    by the way - just for info : Sound-Items in Forms 6i can't be migrated to 10g. They are now obsolet.
    So, the best way is to develop in 6i a solution based on java. Then you use it and communicate with it per java bean.
    try it
    Gerd

  • Extracting portions of the timeline from iMovie to create a 'Sound File'

    Hello
    I recently used my Cannon GL2 as a field recorder to record 16 bit audio sound effects.
    I'd like to extract certain portions of the timeline to create various 'Sound Files' which will be used later (as sound effects), in either iMovie, or FCE HD.
    In iMovie HD, the only method I'm familiar with to extract a portion of the timeline to a 'Sound File', is to FIRST export that portion to a Quicktime File. Then I use 'Sound Studio 2.2.4' to import the Quicktime File. In Sound Studio, I can then create either an AIFF File, or Wav File.
    From there, I open iTunes, and import the Wav File. Now I convert that Wav File to an MP3 (if I need to compress the size of the file).
    I know I can import Raw DV Video Files (Captures), into Garage Band, but then I can't export that edited project into a Sound File.
    But I do know I can use Garage Band to edit (EQ), a portion of the timeline, then Export that portion (as I explained above). But I'm still going through some extra steps .....
    With all I'm mentioned, perhaps I need to get another software program in order to eliminate a step on my way to exporting a portion of a Video timeline from either iMovie, or FCE, and get straight to creating a sound file suitable for later import back into FCE, or iMovie?
    Thanx for your comments
    Mike

    Hey Piero
    Comestah?
    I'm an Italiano too My Granparents are from Bari
    Well yes thank you - that certainly answered part of my question
    Now I wonder if I can extract just a 'PORTION' of the timeline? I tried to insert division points without actually cutting out all the unwanted stuff, and highlighted just that portion, but the Audio Extract process reverts back to extracting the ENITIRE timeline. So I guess I'd have to actually cut and delete all the unwanted parts, then 'save as' to that NEW iMovie project reflecting just that edit in order to extract JUST that audio piece?
    I wonder if the process is more precise in FCE?
    Gracias
    Mike

  • Memory leak in AudioServicesCreateSystemSoundID with sound files

    hi !
    Instruments indicates a 64Ko memory leak in "AudioServicesCreateSystemSoundID" when I use a sound that I have created with GBand / iTunes. When I use the sound file "tap.aif" from the "sysSound" sample, there is no memory leak.
    What's wrong with my audio file ?
    It's a AIFF file, 95Ko, 8 bit mono 22Khz @ 176kbps.
    thanks...

    appFile = [ [ NSBundle mainBundle ] pathForResource : _filename ofType : _extension ];
    FileUrl = [ NSURL fileURLWithPath: appFile ];
    if ( AudioServicesCreateSystemSoundID( ( CFURLRef ) FileUrl, &soundID ) != kAudioServicesNoError )
    return false;
    I don't think the code is wrong because when I change the name of the sound in '_filename', there is no leak.
    I haven't found in the documentation the audio file properties ( 8/16 bits, ... ) supported by 'AudioServicesCreateSystemSoundID'.
    The code is for iPhone.

Maybe you are looking for