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

68 visualizaciones (últimos 30 días)
Benjamin Colbert
Benjamin Colbert el 10 de Sept. de 2019
Comentada: Walter Roberson el 11 de Sept. de 2019
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.

Respuestas (1)

Star Strider
Star Strider el 10 de Sept. de 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 comentarios
Star Strider
Star Strider el 11 de Sept. de 2019
If you need to write the vertically concatenated sounds as a new file, use the audiowrite function.

Iniciar sesión para comentar.

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by