MATLAB Answers


How do merge 2 Wav file into 1 wav file?

Asked by kuan ren chung on 2 Sep 2019
Latest activity Commented on by kuan ren chung on 2 Sep 2019
So basically I want to merge 2 different type of audio file into one wav file, as i have Split my audio file into multiple frames and making changes to the individual frame and needed to put them back into 1 audio file again. But I only manage to combine both audio sound together. Any idea or suggestion? Thank.


on 2 Sep 2019
So you have managed to merge your audio streams and now you want to know how to write that to a wav file?
The audio I merge overlap each other. But I do not want it to overlap, instead adding on to it.
on 2 Sep 2019
What is your input data, what is your required output and what code did you try so far? do you end up with a 4xn array instead of a 2xn array? Do you have a method to determine which sounds overlap?

Sign in to comment.

1 Answer

Answer by Image Analyst
on 2 Sep 2019
 Accepted Answer

Just stitch them together
rebuilt_y = [frame1, frame2, frame3, frame4]

  1 Comment

Thank, it work out fine. Was doing y=[frame1;frame2] previously.

Sign in to comment.