title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Compress/Decompress Wave file to MP3 and vice versa

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cindy_16051988
    • Apr 2006
    • 6

    Compress/Decompress Wave file to MP3 and vice versa

    Hello. Sorry to disturb you all. I hope to get your opinion. For your information, I have a Visual C++ 6.0 software to record and playback human speech. All the speech is recorded with sampling rate of 16kHz in wave file format. Each wave file size is 188kbytes. I have 20 wave files in each practice or each usage of software. And, I need to save all these 20 wave files into a single floppy disk (1.44 Mbytes).

    Total size of 20 wave files = 20*188k = 3,760,000 bytes
    Total floppy disk needed = (3,760,000)/1,440,000 = 2.6 floppy disks
    But, I must save all the 20 wave files into a single floppy disk

    I hope it can work like this: save the data as a wave file in the temporary directory and then convert wave file to MP3 file in your floppy disk. To load a file, convert the mp3 file to wave file in the temporary directory and then load the wave file to the memory.
    Can this method enable me to save all 20 wave files in a single floppy disk?

    I don’t know how to insert the encoding/decoding program codes into my current software without causing any new bugs.

    Or, other than the MP3 compression method, do you have another method or idea of minimizing the size of each wave file? Please tell me.

    Hope to hear you soon, thanks.
  • ChristinaS
    dBpoweramp Guru
    • Apr 2004
    • 4097

    #2
    Re: Compress/Decompress Wave file to MP3 and vice versa

    If your files are stereo, you may want to make them mono, this would halve the space, but won't be enough.

    Maybe use compressed wav (PCM, 16000Hz, mono) - this would give you about 3:1 compression. Going to mono as well if it were stereo, halves it again.

    Or you could use wma .
    You can experiement with all wma formats and compressions. Lossless wma only gives you 2:1 compression. The wma 9 voice can give 77:1 compression. Pick something in between wma lossless and Voice I'd say.

    Comment

    • cindy_16051988
      • Apr 2006
      • 6

      #3
      Re: Compress/Decompress Wave file to MP3 and vice versa

      Originally posted by ChristinaS
      If your files are stereo, you may want to make them mono, this would halve the space, but won't be enough.

      Maybe use compressed wav (PCM, 16000Hz, mono) - this would give you about 3:1 compression. Going to mono as well if it were stereo, halves it again.

      Or you could use wma .
      You can experiement with all wma formats and compressions. Lossless wma only gives you 2:1 compression. The wma 9 voice can give 77:1 compression. Pick something in between wma lossless and Voice I'd say.

      Hi, Christina. Thank you for your post, really appreciate. I am so sad, I am so stupid.
      My current software is developed using PCM, 16000Hz, mono. It is already in mono. I need at least 2.6 compression ration in order to reach my purpose. Sorry, I dont know what is "wma 9 voice" and I cant it at web too. Please forgive my stupidness. Can you elaborate more on "wma 9 voice"?
      I can accept lossy compression. Hope to get your advice, please help.

      Comment

      • ChristinaS
        dBpoweramp Guru
        • Apr 2004
        • 4097

        #4
        Re: Compress/Decompress Wave file to MP3 and vice versa

        When you install the codecs for Windows Media, one of them is WMA Voice.

        There are various compression settings for compressed wav too, you should experiment.

        Comment

        • cindy_16051988
          • Apr 2006
          • 6

          #5
          Re: Compress/Decompress Wave file to MP3 and vice versa

          Originally posted by ChristinaS
          When you install the codecs for Windows Media, one of them is WMA Voice.

          There are various compression settings for compressed wav too, you should experiment.
          Hi, ChristinaS. Do you mean I can use the codecs for Windows Media to incorporated into my current software? How can I do this?

          What compression setting you mean? you mean such as lame encoder?

          Comment

          • Dirkvl
            • Nov 2004
            • 30

            #6
            Re: Compress/Decompress Wave file to MP3 and vice versa

            You could also try incorporating "speex", the (free) open source voice compression codec. It can be found at http://www.speex.org/
            Windows binaries can be used and integrated into you program and you can even use the code for speex intself (although this requires some scary programming).
            You can test various levels of compression for achieving a good compression result (which will be very small).

            Comment

            • ChristinaS
              dBpoweramp Guru
              • Apr 2004
              • 4097

              #7
              Re: Compress/Decompress Wave file to MP3 and vice versa

              Originally posted by cindy_16051988
              Hi, ChristinaS. Do you mean I can use the codecs for Windows Media to incorporated into my current software? How can I do this?

              What compression setting you mean? you mean such as lame encoder?
              I meant you install the wma codecs from Codec Central and use them in dMC. Others you may have in other programs won't generally work in dMC.

              Comment

              Working...

              ]]>