print 'unplugging' soundhandle.play(SoundRequest.NEEDS_UNPLUGGING) sleep(2) print 'plugging badly' soundhandle.play(SoundRequest.NEEDS_PLUGGING_BADLY) sleep(2) print 'unplugging badly' soundhandle.play(SoundRequest.NEEDS_UNPLUGGING_BADLY) sleep(2) s1 = soundhandle.builtinSound(SoundRequest.NEEDS_UNPLUGGING_BADLY) s2 = soundhandle.waveSound("say-beep.wav") s3 = soundhandle.voiceSound("Testing the new A P I") print "New API start voice" s3.repeat() sleep(3) print "New API wave" s2.play() sleep(2) print "New API builtin" s1.play() sleep(2) print "New API stop" s3.stop()