Concatenating wave files

From ESE205 Wiki
Revision as of 17:21, 27 April 2019 by Jennifer.fleites (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Concatenating WAV files is beneficial if you are trying to create piece several WAV files together to form a single file. For the Laser Harp project, concatenating WAV files came in handy when the composition had to be played back and uploaded to a server. To record sounds and save the WAV file in a folder, we concatenated the recording input with an empty WAV file, thereby “updating” the existing file to that with a sound through concatenation.

Installing library

The library can be installed using the command “sudo pip3 install pydub” in the command line

Using library to concatenate files

To concatenate the files, ConcatenatedFile = File1 + File2 ;