MATLAB Answers

How do merge 2 Wav file into 1 wav file?

22 views (last 30 days)
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.

  3 Comments

Rik
Rik 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?
kuan ren chung
kuan ren chung on 2 Sep 2019
The audio I merge overlap each other. But I do not want it to overlap, instead adding on to it.
Rik
Rik 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.

Accepted Answer

Image Analyst
Image Analyst on 2 Sep 2019
Just stitch them together
rebuilt_y = [frame1, frame2, frame3, frame4]
audiowrite(............

  1 Comment

kuan ren chung
kuan ren chung on 2 Sep 2019
Thank, it work out fine. Was doing y=[frame1;frame2] previously.

Sign in to comment.

More Answers (0)

Sign in to answer this question.