Difference between revisions of "Concatenating wave files"

From ESE205 Wiki
Jump to: navigation, search
 
Line 7: Line 7:
 
= Using library to concatenate files =
 
= Using library to concatenate files =
 
To concatenate the files,  
 
To concatenate the files,  
ConcatenatedFile = File1 + File2 ;  
+
ConcatenatedFile = File1 + File2 ;
 
 
 
 
[[Category:HowTos]]
 
[[Category:Programming]]
 

Latest revision as of 11:21, 27 April 2019

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 ;