Let's develop an application where we will combine multiple audio clips into a single audio file.
Download the file
CombiningAudio.py
. This file contains all the code necessary to run this application. As done earlier, we will discuss only the most important methods in this class.Write the following code.
1 import os, sys, time 2 import thread 3 import gobject 4 from optparse import OptionParser 5 6 import pygst 7 pygst.require("0.10") 8 import gst 9 10 class AudioMerger: 11 def __init__(self): 12 pass 13 def constructPipeline(self): 14 pass 15 def addFadingEffect(self): 16 pass 17 def setupFadeBin(self): 18 pass 19 def addGnlFileSources(self): 20 pass 21 def gnonlin_pad_added(self, gnonlin_elem, pad): 22 pass 23 def run(self): 24 pass 25 def connectSignals(self): 26 pass 27 def printUsage(self): 28 pass 29 def printFinalStatus...