def prepareForObjectSelling( obj ): global SCENE, APARTMENT, OBJECTS, RIFT audio = obj.narrationFile[0] sound = viz.addAudio(audio) duration = sound.getDuration() yield viztask.waitTime(1) sound.play() print "now playing audio for prepare for selling object" yield viztask.waitTime(duration) ObjectSelling.init(APARTMENT, OBJECTS, SCENE, RIFT) ObjectSelling.enable()