Well, you'd have to intercept the audio at whatever point you want to measure it, and feed that data to your waveform component. For example you could write a dummy AudioSource that just passes-through its audio but measures it, and you insert that wherever you want in the signal chain to measure it.