+#!/usr/bin/env python
+# An even simpler gstreamer example, omitting all that class stuff
+
+import gi, time
+gi.require_version('Gst', '1.0')
+from gi.repository import Gst
+
+# Create the gstreamer pipeline
+Gst.init(None)
+pipeline = Gst.Pipeline()
+
+# Audio source (src)
+audio = Gst.ElementFactory.make("audiotestsrc")
+pipeline.add(audio)
+
+# Audio output (sink)
+pulsesink = Gst.ElementFactory.make("pulsesink")
+pipeline.add(pulsesink)
+
+# Link our two elements together
+audio.link(pulsesink)
+
+# Start the pipeline
+pipeline.set_state(Gst.State.PLAYING)
+
+# Something to do while the pipeline is playing
+while True:
+ time.sleep(0.001)