adding code for audio generation