Clear Filters
Clear Filters

How can I combine multiple wav files into a single new wav file

34 views (last 30 days)
I have a folder with six 1-minute wav files. I want to have a script that will combine all wav files in a folder into a new 6-minute wav file. I'm super new at matlab and don't know where to start.

Answers (1)

Star Strider
Star Strider on 10 Sep 2019
Use audioread to read them, then vertically concatenate them (assuming they all have the same numbers of channels=columns) using the cat function.
  6 Comments
Star Strider
Star Strider on 11 Sep 2019
If you need to write the vertically concatenated sounds as a new file, use the audiowrite function.

Sign in to comment.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!