How to generate this animated view of wave form?
That is not a waveform, it is an animation simulating one. :o)

Most likely the shapes are it is in vector format, so you can morph it from state A to state B, etc.

There is not a simple way, it needs some work, for example you need to define the exact frame where you want Shape A and where you want Shape B. So make some timelines.

Then use vector-based animation software. Either After effects or the free one Synfig.