MATLAB: How to play and merge/mix 2 wav files

buttonguimixplaysoundtwowav

Hi,
Basically I want to merge the two wav files so that both music or voice annotates and play the a sound(i.e., you can hear both the voice and the music), and than save as a new wav file.
I am thinking of creating a merge/play button, but I do not know how to go about it. Any help would be much appreciated. Thank you.

Best Answer

With regards to a Merge/Play button: create the button ahead of time in GUIDE, but set the default properties for it as 'Visible', 'off' . Then, in your code, as soon as you have verified that you have both inputs so the conditions are right for allowing merging, set the button 'Visible' property to 'on'.
Related Question