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

27 次查看(过去 30 天)
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.

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by