working code for radio broadcast generation