creating spectrogram from audio data