Merge/append/concatenate wav files

hi,
I would like to ask.. does anyone knows how i can go about appending 2 PCM wav files to a new wav file with different format without any sound distortions?
Lets say i have 2 PCM wav files..
Eg:
1.wav
numChannel = 1(mono)
sampleRate= 16khz
bitsPerSample = 16bits
2.wav
numChannel = 2(stereo)
sampleRate= 44khz
bitsPerSample = 16bits
I am able to append 2.wav to 1.wav but because the new wav file's header takes the format of 1.wav, the sound for 2.wav gets distorted.
What should i do/change so that both files when appended, play exactly as they originally sound without distortion to either file?
Pls help. Any suggestions are appreciated. thanks.

I doubt that the problem is coming from the joining. Try putting just one file through the process, without adding anything alse to it. Try to simulate it as closely as possible. If that eliminates the hissing, then check to make sure you're not coming in on the wrong offset. If that doesn't work, no clue.
If it doesn't eliminate the hissing, there's probably a problem with data conversion, i.e. casting or chopping or mangling in general.
if(simulate with one eliminates hissing)
      check for offfset errors;
      if(still hisses)
          no clue;
else
      check for data mangling;
}

Similar Messages

  • Merge Avi and Wave Files

    Hi,
    I'm trying to load my old windows videos in iMovie but the old Windows-Program split the file in avi and wav. If I import the movie now into iMovie I don't get any sound. I know they're several programs for Windows to merge but I counld't find anything that works for the Mac.
    Any idea?

    Lona! wrote:
    .. Hab mir die Lösung irgendwie komplizierter vorgestellt
    Probier das auch mal mit anderen Programmen.. : Du kannst eigentlich fast alles von einem zum anderen Programm 'ziehen und fallen lassen' = *drag'n drop* .. im MacOs seit circa 15 Jahren wesentlicher Bestandteil.
    Freut mich, geholfen haben zu können..

  • Merge/append the contents of a pdf file to an MS Word document in JAVA

    Hi experts,
    I have a requirement to merge/append the contents of a pdf file to an ms word document(Not to be done by including pdf file objects in word). Please suggest some java libraries or ways to do it using java. Any pointers would be appreciated.
    Regards,
    Subin

    Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat.   By default the installation files have been saved to your download folder.
    If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
    You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files.

  • Merging 2 Wave files

    Hi,
    i was wondering if anyone had any advice on how to merge 2 wave files together, ie a music file and a voiceover file. At the moment I dont know how to make the voiceover appear where I want it in the music file, e.g. 30 seconds in. Does anyone have any advice?
    thanks,
    vicki

    Hi all,
    I've been working on the problem, and here is some of my source code. With this, i've been taking the 2 input streams and averaging them to give one output stream, but so far I keep getting the message
    java.io.IOException: cannot read a single byte if frame size != 1
    Is this because the wave files are in stereo format and hence each frame sample would be 2 bytes long? If so, how so I get around this?
    Thanks,
    Vicki
    //Program to merge 2 wave files together
    import java.io.*;
    import javax.media.*;
    import javax.sound.sampled.*;
    public class WaveMerge{
    public static void main(String [] args){
         try{
         AudioInputStream aio1 = AudioSystem.getAudioInputStream(new File("Elevation.wav"));//new File(args[0]));
         AudioInputStream aio2 = AudioSystem.getAudioInputStream(new File("Yo_MF.wav"));//new File(args[1]));
         int framesRead = 0;
         int byteRead1 = 0;
         int byteRead2 = 0;
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         while((byteRead1 = aio2.read()) != -1 && (byteRead2 = aio2.read()) != -1){
              int average = Math.round((byteRead1 + byteRead2)/2);
              out.write(average);
              framesRead++;
         if(byteRead1 == -1){
              while((byteRead2 = aio2.read()) != -1) out.write(byteRead2);
              framesRead++;
         else{
              while((byteRead1 = aio1.read()) != -1) out.write(byteRead1);
              framesRead++;
         ByteArrayInputStream finalStream = new ByteArrayInputStream(out.toByteArray());
         File outFile = new File("merged.wav");
         AudioSystem.write( new AudioInputStream(finalStream, aio1.getFormat(), framesRead),
              AudioSystem.getAudioFileFormat(new File("Elevation.wav")).getType(), outFile );
         catch(Exception e){
         System.err.println("Error:" + e);

  • Merge Two WAV File then play the result

    Hi All,
    I'm new In MM, I path for two wav file I want to merge them then play the result,
    anyone can help me asap?
    Thanks in Advance,

    You could do this in FCE by putting stills of your slides on V1 and speaker notes on V2 and adjusting their sizes so that each fills an appropriate portion of the screen. Then export the whole thing as a QuickTime movie which a viewer can start/pause/stop in QuickTime Player. It's not as elegant as what you envision, but I think this approach would work.

  • How can I merge multiple wav files in Premiere?

    Hi Everyone,
    So after I import my synced timeline from Plural Eyes and replace the audio clips I notice that the new XML file has multiple wav files for each of my cameras. I do know that dragging these wav files together increases the gain. Is there a way to have these wav files joined to make one solitary track and file with only one level? TIA
    Mike Diaz

    The best method I can think of is to skip PluralEyes and all the issues that come with it.
    1. Create a sequence matching your media.
    2. Add the clips, sync manually.
    3. Create a second sequence matching your media.
    4. Nest the first sequence into the second.
    5. Right click that nested sequence, choose Multi-Camera>Enable.

  • FLASH CS3[AS3] – MICROPHONE – RECORD AND SAVE AS WAVE FILE

    HI,
    I need solution for this one.Can we record,play and save an audio using flash CS3 astion script.
    It should be something like this:http://justflash.byethost12.com/microphone/microphone_recandsave1.html
    I have searched for the soluiton but i found it in flash cs5.I need it in flash cs3.
    Looking for the solution.
    Thank You

    Hello Jeff,
    From the LabVIEW Help description:
    Sound File Write Simple (Windows, Linux)
    Writes data from an array of waveforms to a .wav file. This VI automatically opens, writes to, and closes the .wav file. Windows You must have DirectX 8.0 or later to use this VI. Linux You must have the Open Sound System (OSS) driver to use this VI.
    So, the data input to Sound File Write Simple.vi is an array of waveforms. However, if you only have one waveform, you can build an array that contains only your single waveform using the Build Array VI. As described in the LabVIEW Help description:
    Build Array
    Concatenates multiple arrays or appends elements to an n-dimensional array. You also can use the Replace Array Subset function to modify an existing array.
    So, for example, you could run your single waveform into the Build Array function and get an array of waveforms containing only your waveform. You could then wire this array of waveforms to the Sound File Write Simple.vi. This is shown in the image below.
    Message Edited by Matt A on 06-28-2007 09:58 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    Build Array.JPG ‏11 KB

  • Mixing external wave file into video

    I've recorded a video including sound of a mandolin being played.  At the same time I recorded the sound with my external recorder which resulted in a wave file of better quality that the sound from the camera.  I would like to import the video and the externally recorded wave file into a project, line up the external wave file with the sound recorded by the video camera and then delete the sound recorded with the video camera so I end up with a video that has the sound from the external recording system.  Any recommendations on a good approach to accomplishing this task?

    There's information here about how to use the new merged clips features in Premiere Pro CS5.5 to merge the audio from an external source with the video from the camera.

  • Need to Merge an Adobe XML file with a normal PDF

    The problem...
    I have created an order form in Adobe LiveCycle Designer (pre-ES).  The customer's requirements force us to merge their purchase order (a flat standard PDF) with the order form I have created to get the complete PDF to bill with.  Previously we were using a form created in another software and printing to PDF to merge the 2 PDF files.  The thought process with creating a form in LiveCycle Designer was "Oh 2 PDF's we can just merge them" ... we were very WRONG.  And please don't suggest "Packaging" the files... it won't work for our processing system... we've already tried .
    What we know now (had we known it before we'd have never purchased the licensing for LiveCycle Designer to start with)...
    You can NOT merge a PDF that has XML in it with Adobe Proffesional.
    Temporary Solution...
    We know we can print to PDF and then merge the files... this gets us the result we need, but it takes longer to print to PDF from these XML files than it did from the previous versions of the order forms in created in other software.
    Is there another solution? 
    Plea for help!  The users that are forced to do the process of printing to file and merging are ready to riot and/or go back to the "other" software.

    Hello!
    There are a couple terms you can google:
    "PDF Concatenate Forms iText"
    "Merge XML data with PDF Forms"
    Concatenating PDFs means you join multiple forms together into one PDF.
    Did you need to merge, or concatenate the forms?
    Either way there are a couple of methods to do this programmably.
    iTextSharp (.NET)
    iText (Java)
    FDFToolkit.net (.NET)
    iText products are open source, and have a learning curve, and support is provided on a Open mailing list.
    iText products are free ($) but can cost you time and money to research the methods.
    Useful Links:
    http://www.fdftoolkit.net/
    Message was edited by: NKOWA

  • What is the Unix command to concatenate two files and merget it in to one ?

    Hi Experts,
    I have three jobs and each job creates a file. I want to run one more job which clubs these three files and merges it in to one.
    I know the process of opening each file and appending it in to the target file using DATASET concept.
    Instead of that, I want any UNIX Shell command so that I can call that directly from ABAP and execute it
    Any help on this would be highly appreciated
    Thanks in advance.
    Babu Kilari

    Hello Babu,
    We can very well call an OS command from within ABAP, but in your case, I don't think that is really required. Please find below a logic that might be helpful to you.
    You have three files, whose contents needs to be merged into a single file.
    Read the contents of each file and store it into an internal table.
    DATA: command LIKE rs37a-line.
    DATA: BEGIN OF tabl OCCURS 0,
              line(2000),
          END OF tabl.
    command = 'cat /tmp/file1.txt'.
    CALL 'SYSTEM' ID 'COMMAND' FIELD command
                  ID 'TAB'     FIELD tabl-*sys*.
    Internal table 'tabl' will contain the contents of the file.
    Accumulate all the contents into a single file and upload to the application server using OPEN DATASET, TRANSFER DATASET and CLOSE DATASET.
    Let me know if you need a more detailed explanation.
    Regards
    Sabu.

  • Concatenate PDF files with Exaprom iTextSharp

    1st Hats off the the folks at Exaprom. Thanks for this wonderful utility/toolkit.
    I want to merge several PDF files into a single file along with some standard text files. Using the iTextSharp tools from Exaprom found here is very easy. The workflow is
    Create new PDF
    add content
    close PDF
    I am assuming that I need to use some kind of openfile method to get the file I want to merge with my created file. Looking at the web it seems that pdf forms can have additional complecations using iTextSharp.
    I have used pdftk in the past but it seems kinda clunky to me.
    Any help will be appriciated.

    Hi Viper,
    Since the toolkit you are referring to was not developed by NI I am not very familiar with the functionality of the VIs. After taking a look through the documentation it looks like in order to use those VIs to merge PDF files and text files you will need to first create a new PDF, read from the existing PDFs and text files that you want to merge and use the data that was read as an input to the append VI included in the iTextSharp package. The problem is that there is currently no function or VI that will specifically read from PDF. The easiest route to take in this case is probably to convert the PDFs that you want to merge to text files or HTML files, then read and input the data into the append VI. I have included some examples for reading from text and HTML files into string indicators in LabVIEW. 
    https://decibel.ni.com/content/docs/DOC-16813
    https://decibel.ni.com/content/docs/DOC-10662
    https://decibel.ni.com/content/docs/DOC-3709
    There are also other PDF toolkits that you could look in to: http://sine.ni.com/nips/cds/view/p/lang/en/nid/209030
    I hope this helps.
    Regards,
    James D.
    Applications Engineer
    National Instruments

  • Combine WAV files?

    Kind of a weird idea, but I'd like to see if it would be
    possible to "assemble" a WAV file (using CF) from smaller WAV
    files.
    My idea: We report of the heights of rivers across the U.S.
    (as in, at this moment, the Potomac River is 5.45 feet). I am able
    to have people send in an email asking for a certain river, and CF
    produces an email back to them with the river height (process runs
    every 5 minutes).
    But I thought of sending them back a voice (WAV) file to
    their cell phones, so they could hear the river height instead of
    using a text email. I thought if I could have a library of small
    WAV files for each number, a "point", and some words, maybe I could
    combine the needed pieces from multiple WAV files:
    "Potomac" + "Height is" + "5" + "point" + "4" + "5" + "feet"
    Somehow join those little WAV files into a single WAV file:
    "Potomac height is 5 point 4 5 feet"
    I can't believe CF could join these files, but if anyone has
    any ideas, please let me know!
    Thanks....

    Is there any shareware online that lets you merge wav files?
    I would imagine you could string the phrases and send them to
    the program
    with <cfexec> or something, haven't looked into it
    myself, but it sounds
    like a interesting idea...
    "Howard Perlman" <[email protected]> wrote
    in message
    news:f3h85b$jba$[email protected]..
    > Kind of a weird idea, but I'd like to see if it would be
    possible to
    > "assemble"
    > a WAV file (using CF) from smaller WAV files.
    >
    > My idea: We report of the heights of rivers across the
    U.S. (as in, at
    > this
    > moment, the Potomac River is 5.45 feet). I am able to
    have people send in
    > an
    > email asking for a certain river, and CF produces an
    email back to them
    > with
    > the river height (process runs every 5 minutes).
    >
    > But I thought of sending them back a voice (WAV) file to
    their cell
    > phones, so
    > they could hear the river height instead of using a text
    email. I thought
    > if I
    > could have a library of small WAV files for each number,
    a "point", and
    > some
    > words, maybe I could combine the needed pieces from
    multiple WAV files:
    > "Potomac" + "Height is" + "5" + "point" + "4" + "5" +
    "feet"
    >
    > Somehow join those little WAV files into a single WAV
    file:
    > "Potomac height is 5 point 4 5 feet"
    >
    > I can't believe CF could join these files, but if anyone
    has any ideas,
    > please
    > let me know!
    > Thanks....
    >

  • Audio CD iso from wav files on the shell

    I googled around for this but haven't found a solution.  I want to take a directory of wav files and write them to an iso file that can be burned off to a CD (a functional audio CD) at a later time.  Closest I found is using /usr/bin/genisoimage but it doesn't make an audio CD image, rather, just a data iso.
    genisoimage -o test.iso ./music/*.wav

    graysky,
    this is how a simplified single process script could look like:
    #!/usr/bin/python
    import os
    # Grab all subdirectories within the current directory
    search_sub ="find ./* -type d"
    dirlist = []
    for subdir in os.popen (search_sub):
    dirlist.append(os.getcwd() + subdir[1:-1] + '/')
    for cur_dir in dirlist:
    os.chdir (cur_dir)
    os.popen ("shntool cue *.flac > foo.cue")
    os.popen ("shntool join *.flac")
    You might want to give it a shot at a trial copy of your audio directories.
    Edit:
    A quick prototype for multiple encoding processes:
    #!/usr/bin/python
    import os
    import multiprocessing
    def bincue ():
    while not q.empty():
    cur_dir = q.get()
    os.chdir (cur_dir)
    os.popen ("shntool cue *.flac > foo.cue")
    os.popen ("shntool join *.flac")
    # Init Queue for found sudirectories
    q = multiprocessing.Queue()
    # Grab all subdirectories within the current directory
    search_sub ="find ./* -type d"
    for subdir in os.popen (search_sub):
    q.put (os.getcwd() + subdir[1:-1] + '/')
    cores=multiprocessing.cpu_count()
    for i in range (cores):
    process = multiprocessing.Process(target=bincue, args=())
    process.start()
    Last edited by Darksoul71 (2012-07-05 14:47:54)

  • How can we convert .mov ( implemented by quicktime APi)  to .WAV file

    Hi,
    How can we convert one .MOV audio file (generated by quicktime API) to .WAV audio file ( need LINER - encoding format).
    Here I dont know the encoding format of .MOV audio input file.
    regards,
    Rams

    mfrasyid1 wrote:
    I wonder why this happens? The "unable to handle.." really does come out twice. Is it because the inputfile.mov which I wanna convert comes from the merging oftwo wave files? If so, then how can I convert this into single wave file? Thank you.That is a weird message, but yes, the .mov file probably stored the 2 original WAV files as 2 tracks of data, rather than 1 track. So whenever it's trying to transcode to a WAV file, it fails to transcode both tracks.
    As for fixing it... I dunno. I know that JavaSound can mix two WAV files at the sample-level, so it actually mixes the sound instead of adding 2 tracks to a file...but I don't know why that's giving you those error messages, unless perhaps it's trying to transcode the video track into an audio track (perhaps the code isn't smart enough to handle transcoding a video file into an audio file? You'd have to check the code to see if that's the case...)

  • Is there ant difference of "wave" file between OSX with Windows XP

    Hi!
    I made some sound effects with Sound Track Pro 2,and save it to *.wav,but I found when I put it into Windows XP,It can be played by Windows Media Player,but can not be recognized by our game Engine.
    I'm a developer of game company!
    And same sound I use the Sound Forge convert to wave file,so it can be recognized.So strange.
    So,anyone can help me with this.Thanks

    I had a problem recently where I couldn't open 32 bit WAVs on my Mac which were created in Adobe Audition. To cut a long story short, Audition uses (or used) a proprietory 32 bit format called 16.8 bit float which is now defunct. I had to convert these before OSX would open them, but this was a bit of a one-off and I've never had any other problems with using the same WAVs on Mac/PC.
    That Windows Media Player in XP opens the WAV before conversion means it is not entirely the OS that is the root of the problem.
    Just for information, I do know that Wave Editor in OS X appends some additional metadata to WAVs on opening.

Maybe you are looking for

  • Can't Find Games for ipod nano 4th gen

    I'm a newbie and can't find the games for ipod nano 4th gen,and can ipod 4th gen plays games for ipod touch and iphone?

  • Mapping: ORA-04052 Remote Object not found

    Hi, I created a source module with a table reading from an external Oracle database. I can see data so the connection seems to work. In the target module a mapping trying to read from this table can´t be deployed with this errors message: - ora-06550

  • Mark as spam on iPhone

    Is there any way to mark email for my iCloud account as spam on my iPhone? I'm running iOS 5.1.1. It's extremely frustrating to receive spam email on my iPhone and have no way of reporting it. The iCloud WWW page will not allow you to log in from an

  • BPC Backup using Server Manager is failing when "compressing webfolders"

    I'm using the Server Manager UI to backup my production environment and it keeps failing during the "compress webfolders" step. Any ideas why this would happen? Thanks, Kristi

  • Skype number / Subscription confusion and frustrat...

    Hi, I signed up for a skype number two years ago and I've been using one since. During my first and second years, calls within the United States were included with the number. I just renewed and it and I can't make any calls within the United States