Difference between revisions of "Concatenating wave files"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | = 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 ; | ||
[[Category:HowTos]] | [[Category:HowTos]] | ||
[[Category:Programming]] | [[Category:Programming]] |
Revision as of 20:02, 30 March 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 ;