In this section we will develop a utility that will cut out a portion of an MP3 formatted audio and save it as a separate file.
AudioCutter.pyhandy. You can download it from the Packt website. Here we will only discuss important methods. The methods not discussed here are similar to the ones from earlier examples. Review the file
AudioCutter.pywhich has all the necessary source code to run this application.
import os, sys, time import thread import gobject import pygst pygst.require("0.10") import gst class AudioCutter: def __init__(self): pass def constructPipeline(self): pass def gnonlin_pad_added(self, gnonlin_elem, ...